Reply quick mode with the same SA lifetime that we received
This commit is contained in:
@@ -510,15 +510,15 @@ static void apply_lifetimes(private_quick_mode_t *this, sa_payload_t *sa_payload
|
|||||||
lifebytes = sa_payload->get_lifebytes(sa_payload);
|
lifebytes = sa_payload->get_lifebytes(sa_payload);
|
||||||
if (this->lifetime != lifetime)
|
if (this->lifetime != lifetime)
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "received %us lifetime, configured %us, using lower",
|
DBG1(DBG_IKE, "received %us lifetime, configured %us",
|
||||||
lifetime, this->lifetime);
|
lifetime, this->lifetime);
|
||||||
this->lifetime = min(this->lifetime, lifetime);
|
this->lifetime = lifetime;
|
||||||
}
|
}
|
||||||
if (this->lifebytes != lifebytes)
|
if (this->lifebytes != lifebytes)
|
||||||
{
|
{
|
||||||
DBG1(DBG_IKE, "received %llu lifebytes, configured %llu, using lower",
|
DBG1(DBG_IKE, "received %llu lifebytes, configured %llu",
|
||||||
lifebytes, this->lifebytes);
|
lifebytes, this->lifebytes);
|
||||||
this->lifebytes = min(this->lifebytes, lifebytes);
|
this->lifebytes = lifebytes;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user