child-create: Fix crash when retrying CHILD_SA rekeying due to a DH group mismatch
authorTobias Brunner <tobias@strongswan.org>
Tue, 28 Jul 2015 13:10:17 +0000 (15:10 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 21 Aug 2015 14:14:07 +0000 (16:14 +0200)
commit1729df927516f26646c1743cc0405d7e47d2168c
tree14509364cf7c44b1619bd09600fd1922815c25fc
parentfdb90723b7f2b94b16596b8581b10eae3401f392
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()")
src/libcharon/sa/ikev2/tasks/child_create.c