Fixed memory leak when handling IKEv1 error notifications.
authorTobias Brunner <tobias@strongswan.org>
Mon, 12 Dec 2011 17:37:49 +0000 (18:37 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 20 Mar 2012 16:31:18 +0000 (17:31 +0100)
src/libcharon/sa/task_manager_v1.c

index 65cce8e..b20a9ac 100755 (executable)
@@ -634,6 +634,7 @@ static status_t process_request(private_task_manager_t *this,
                                                                        if(notify->get_notify_type(notify) < 16384)
                                                                        {
                                                                                DBG1(DBG_IKE, "Received %N error notification.", notify_type_names, notify->get_notify_type(notify));
+                                                                               enumerator->destroy(enumerator);
                                                                                return FAILED;
                                                                        }
                                                                        break;