ikev1: Activate DELETE tasks before other tasks in state ESTABLISHED
Fixes #1410.
This commit is contained in:
@@ -514,14 +514,7 @@ METHOD(task_manager_t, initiate, status_t,
|
|||||||
new_mid = TRUE;
|
new_mid = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (!mode_config_expected(this) &&
|
if (activate_task(this, TASK_ISAKMP_DELETE))
|
||||||
activate_task(this, TASK_QUICK_MODE))
|
|
||||||
{
|
|
||||||
exchange = QUICK_MODE;
|
|
||||||
new_mid = TRUE;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (activate_task(this, TASK_INFORMATIONAL))
|
|
||||||
{
|
{
|
||||||
exchange = INFORMATIONAL_V1;
|
exchange = INFORMATIONAL_V1;
|
||||||
new_mid = TRUE;
|
new_mid = TRUE;
|
||||||
@@ -533,7 +526,14 @@ METHOD(task_manager_t, initiate, status_t,
|
|||||||
new_mid = TRUE;
|
new_mid = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (activate_task(this, TASK_ISAKMP_DELETE))
|
if (!mode_config_expected(this) &&
|
||||||
|
activate_task(this, TASK_QUICK_MODE))
|
||||||
|
{
|
||||||
|
exchange = QUICK_MODE;
|
||||||
|
new_mid = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (activate_task(this, TASK_INFORMATIONAL))
|
||||||
{
|
{
|
||||||
exchange = INFORMATIONAL_V1;
|
exchange = INFORMATIONAL_V1;
|
||||||
new_mid = TRUE;
|
new_mid = TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user