ikev1: Delete Quick Mode SAs before the ISAKMP SA
authorTobias Brunner <tobias@strongswan.org>
Thu, 25 Aug 2016 07:54:17 +0000 (09:54 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 4 Oct 2016 08:14:43 +0000 (10:14 +0200)
After the ISAKMP_DELETE task has been executed the IKE_SA is destroyed
so we wouldn't be able to send deletes for the Quick Mode SAs.

src/libcharon/sa/ikev1/task_manager_v1.c

index 117102b..082afae 100644 (file)
@@ -515,13 +515,13 @@ METHOD(task_manager_t, initiate, status_t,
                                        new_mid = TRUE;
                                        break;
                                }
-                               if (activate_task(this, TASK_ISAKMP_DELETE))
+                               if (activate_task(this, TASK_QUICK_DELETE))
                                {
                                        exchange = INFORMATIONAL_V1;
                                        new_mid = TRUE;
                                        break;
                                }
-                               if (activate_task(this, TASK_QUICK_DELETE))
+                               if (activate_task(this, TASK_ISAKMP_DELETE))
                                {
                                        exchange = INFORMATIONAL_V1;
                                        new_mid = TRUE;