ike-rekey: Register new IKE_SA before calling inherit_post()
authorTobias Brunner <tobias@strongswan.org>
Fri, 15 Jan 2021 15:25:54 +0000 (16:25 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 12 Feb 2021 14:49:08 +0000 (15:49 +0100)
commit1c5cef1b895d7ea9c15327b5eb4605897faf67a6
tree88d68a91fdc4daa1f11e273f2c012830f3321d79
parent5d97af58942325018550c338cd02a683009bfcbe
ike-rekey: Register new IKE_SA before calling inherit_post()

If rekeying and reauthetication coincided, the reauth job could get
scheduled to run immediately i.e. before checkin() was called.  So the
new IKE_SA would not get reauthenticated, however, the further delayed
delete job would later find the new IKE_SA and delete it.
src/libcharon/sa/ikev2/tasks/ike_rekey.c