]> git.ipfire.org Git - people/ms/strongswan.git/commitdiff
ha: Register the correct IKE_SA with the manager after a rekeying
authorTobias Brunner <tobias@strongswan.org>
Fri, 18 Jun 2021 13:31:06 +0000 (15:31 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 21 Jun 2021 08:02:26 +0000 (10:02 +0200)
Fixes: 20dfbcad0875 ("ha: Register new IKE_SAs before calling inherit_post()")
Closes strongswan/strongswan#456.

src/libcharon/plugins/ha/ha_dispatcher.c

index 3c608e614cfaa30d306149e605932cf8787a4592..3f91183e46e7327726e7da4ba7eda3610b619b66 100644 (file)
@@ -262,7 +262,7 @@ static void process_ike_add(private_ha_dispatcher_t *this, ha_message_t *message
                        {       /* register IKE_SA before calling inherit_post() so no scheduled
                                 * jobs are lost */
                                charon->ike_sa_manager->checkout_new(charon->ike_sa_manager,
-                                                                                                        old_sa);
+                                                                                                        ike_sa);
                                ike_sa->inherit_pre(ike_sa, old_sa);
                                ike_sa->inherit_post(ike_sa, old_sa);
                                charon->ike_sa_manager->checkin_and_destroy(