ike-rekey: Fix cleanup() call
authorTobias Brunner <tobias@strongswan.org>
Mon, 27 Jul 2015 13:20:01 +0000 (15:20 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 27 Jul 2015 13:20:01 +0000 (15:20 +0200)
src/libcharon/sa/ikev2/tasks/ike_rekey.c

index 4133c93..eaba04e 100644 (file)
@@ -394,7 +394,7 @@ static void cleanup(private_ike_rekey_t *this)
 METHOD(task_t, migrate, void,
        private_ike_rekey_t *this, ike_sa_t *ike_sa)
 {
-       cleanup();
+       cleanup(this);
        this->collision = NULL;
        this->ike_sa = ike_sa;
        this->new_sa = NULL;
@@ -405,7 +405,7 @@ METHOD(task_t, migrate, void,
 METHOD(task_t, destroy, void,
        private_ike_rekey_t *this)
 {
-       cleanup();
+       cleanup(this);
        free(this);
 }