diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-07-28 15:10:17 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-08-21 16:14:07 +0200 |
commit | 1729df927516f26646c1743cc0405d7e47d2168c (patch) | |
tree | 14509364cf7c44b1619bd09600fd1922815c25fc | |
parent | fdb90723b7f2b94b16596b8581b10eae3401f392 (diff) | |
download | strongswan-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()")
-rw-r--r-- | src/libcharon/sa/ikev2/tasks/child_create.c | 1 |
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; |