mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-05 00:00:45 -04:00
ikev1: Activate DELETE tasks before other tasks in state ESTABLISHED
Fixes #1410.
This commit is contained in:
parent
bf3bed1cc4
commit
612fe5410b
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user