Activate DELETE tasks when queued
authorMartin Willi <martin@revosec.ch>
Tue, 13 Dec 2011 09:36:02 +0000 (10:36 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:19 +0000 (17:31 +0100)
src/libcharon/sa/task_manager_v1.c

index f9df256..6a9592f 100755 (executable)
@@ -315,6 +315,16 @@ METHOD(task_manager_t, initiate, status_t,
                                        exchange = INFORMATIONAL_V1;
                                        new_mid = TRUE;
                                }
+                               if (activate_task(this, TASK_IKE_DELETE))
+                               {
+                                       exchange = INFORMATIONAL_V1;
+                                       new_mid = TRUE;
+                               }
+                               if (activate_task(this, TASK_CHILD_DELETE))
+                               {
+                                       exchange = INFORMATIONAL_V1;
+                                       new_mid = TRUE;
+                               }
                                break;
                        default:
                                break;