apply peer config during rekeying
This commit is contained in:
committed by
Martin Willi
parent
34d240a6e3
commit
c81f4fa29d
@@ -139,7 +139,13 @@ static void process_ike_add(private_ha_sync_dispatcher_t *this,
|
|||||||
{
|
{
|
||||||
if (old_sa)
|
if (old_sa)
|
||||||
{
|
{
|
||||||
ike_sa->inherit(ike_sa, old_sa);
|
peer_cfg_t *peer_cfg = old_sa->get_peer_cfg(old_sa);
|
||||||
|
|
||||||
|
if (peer_cfg)
|
||||||
|
{
|
||||||
|
ike_sa->set_peer_cfg(ike_sa, peer_cfg);
|
||||||
|
ike_sa->inherit(ike_sa, old_sa);
|
||||||
|
}
|
||||||
charon->ike_sa_manager->checkin_and_destroy(
|
charon->ike_sa_manager->checkin_and_destroy(
|
||||||
charon->ike_sa_manager, old_sa);
|
charon->ike_sa_manager, old_sa);
|
||||||
old_sa = NULL;
|
old_sa = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user