ikev2: Only request reauth during IKE_AUTH if active reauth is not possible
If we can initiate the reauthentication ourselves, there is no reason to explicitly request the peer to do so (at basically the same time).
This commit is contained in:
@@ -103,7 +103,10 @@ METHOD(task_t, build_r, status_t,
|
||||
if (message->get_exchange_type(message) == IKE_AUTH &&
|
||||
this->ike_sa->get_state(this->ike_sa) == IKE_ESTABLISHED)
|
||||
{
|
||||
add_auth_lifetime(this, message);
|
||||
if (!ike_sa_can_reauthenticate(this->ike_sa))
|
||||
{
|
||||
add_auth_lifetime(this, message);
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
return NEED_MORE;
|
||||
|
||||
Reference in New Issue
Block a user