aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-07-28 15:10:17 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-21 16:14:07 +0200
commit1729df927516f26646c1743cc0405d7e47d2168c (patch)
tree14509364cf7c44b1619bd09600fd1922815c25fc /src
parentfdb90723b7f2b94b16596b8581b10eae3401f392 (diff)
downloadstrongswan-1729df927516f26646c1743cc0405d7e47d2168c.tar.bz2
strongswan-1729df927516f26646c1743cc0405d7e47d2168c.tar.xz
child-create: Fix crash when retrying CHILD_SA rekeying due to a DH group mismatch
If the responder declines our KE payload during a CHILD_SA rekeying migrate() is called to reuse the child-create task. But the child-rekey task then calls the same method again. Fixes: 32df0d81fb46 ("child-create: Destroy nonceg in migrate()")
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/sa/ikev2/tasks/child_create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcharon/sa/ikev2/tasks/child_create.c b/src/libcharon/sa/ikev2/tasks/child_create.c
index e0f930c3c..ee5086fe1 100644
--- a/src/libcharon/sa/ikev2/tasks/child_create.c
+++ b/src/libcharon/sa/ikev2/tasks/child_create.c
@@ -1596,6 +1596,7 @@ METHOD(task_t, migrate, void,
this->tsi = NULL;
this->tsr = NULL;
this->dh = NULL;
+ this->nonceg = NULL;
this->child_sa = NULL;
this->mode = MODE_TUNNEL;
this->ipcomp = IPCOMP_NONE;