Block XAuth transaction on established IKE_SAs, but allow Mode Config
This commit is contained in:
@@ -1209,7 +1209,6 @@ METHOD(ike_sa_t, process_message, status_t,
|
||||
{
|
||||
case ID_PROT:
|
||||
case AGGRESSIVE:
|
||||
case TRANSACTION:
|
||||
case IKE_SA_INIT:
|
||||
case IKE_AUTH:
|
||||
if (this->state != IKE_CREATED &&
|
||||
|
||||
@@ -879,7 +879,7 @@ static status_t process_request(private_task_manager_t *this,
|
||||
}
|
||||
break;
|
||||
case TRANSACTION:
|
||||
if (this->ike_sa->get_state(this->ike_sa) == IKE_ESTABLISHED)
|
||||
if (this->ike_sa->get_state(this->ike_sa) != IKE_CONNECTING)
|
||||
{
|
||||
task = (task_t *)mode_config_create(this->ike_sa, FALSE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user