aboutsummaryrefslogtreecommitdiffstats
path: root/main/strongswan/0015-ike-rekey-Fix-cleanup-call.patch
blob: e17cf30cd94529b567e12b90207528d44089b77c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 81f1aa8dc375a84d9f0dc3e4027f2aebf6d03b18 Mon Sep 17 00:00:00 2001
From: Tobias Brunner <tobias@strongswan.org>
Date: Mon, 27 Jul 2015 15:20:01 +0200
Subject: [PATCH] ike-rekey: Fix cleanup() call

---
 src/libcharon/sa/ikev2/tasks/ike_rekey.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libcharon/sa/ikev2/tasks/ike_rekey.c b/src/libcharon/sa/ikev2/tasks/ike_rekey.c
index 4133c93..eaba04e 100644
--- a/src/libcharon/sa/ikev2/tasks/ike_rekey.c
+++ b/src/libcharon/sa/ikev2/tasks/ike_rekey.c
@@ -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);
 }
 
-- 
2.4.6