aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-03-10 15:08:58 +0100
committerMartin Willi <martin@revosec.ch>2015-03-10 15:08:58 +0100
commit438318c6c3b15db75bf5e18294edf9375a1a97f2 (patch)
tree5b52b6d90521780e2afc0fef7259f6204a1079d1 /src
parenteb3e339a3c58b6b1a35907c1d9023beaf7f25aaa (diff)
downloadstrongswan-438318c6c3b15db75bf5e18294edf9375a1a97f2.tar.bz2
strongswan-438318c6c3b15db75bf5e18294edf9375a1a97f2.tar.xz
ha: Destroy synced IKE_SA if no configuration is found during update
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/ha/ha_dispatcher.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcharon/plugins/ha/ha_dispatcher.c b/src/libcharon/plugins/ha/ha_dispatcher.c
index 983f9d8fc..88160fe4f 100644
--- a/src/libcharon/plugins/ha/ha_dispatcher.c
+++ b/src/libcharon/plugins/ha/ha_dispatcher.c
@@ -373,6 +373,9 @@ static void process_ike_update(private_ha_dispatcher_t *this,
else
{
DBG1(DBG_IKE, "HA is missing nodes peer configuration");
+ charon->ike_sa_manager->checkin_and_destroy(
+ charon->ike_sa_manager, ike_sa);
+ ike_sa = NULL;
}
break;
case HA_EXTENSIONS: