ha: Register the correct IKE_SA with the manager after a rekeying
Fixes: 20dfbcad08 ("ha: Register new IKE_SAs before calling inherit_post()")
Closes strongswan/strongswan#456.
This commit is contained in:
@@ -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
|
{ /* register IKE_SA before calling inherit_post() so no scheduled
|
||||||
* jobs are lost */
|
* jobs are lost */
|
||||||
charon->ike_sa_manager->checkout_new(charon->ike_sa_manager,
|
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_pre(ike_sa, old_sa);
|
||||||
ike_sa->inherit_post(ike_sa, old_sa);
|
ike_sa->inherit_post(ike_sa, old_sa);
|
||||||
charon->ike_sa_manager->checkin_and_destroy(
|
charon->ike_sa_manager->checkin_and_destroy(
|
||||||
|
|||||||
Reference in New Issue
Block a user