diff options
author | Martin Willi <martin@revosec.ch> | 2015-03-10 15:08:58 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2015-03-10 15:08:58 +0100 |
commit | 438318c6c3b15db75bf5e18294edf9375a1a97f2 (patch) | |
tree | 5b52b6d90521780e2afc0fef7259f6204a1079d1 /src/libcharon | |
parent | eb3e339a3c58b6b1a35907c1d9023beaf7f25aaa (diff) | |
download | strongswan-438318c6c3b15db75bf5e18294edf9375a1a97f2.tar.bz2 strongswan-438318c6c3b15db75bf5e18294edf9375a1a97f2.tar.xz |
ha: Destroy synced IKE_SA if no configuration is found during update
Diffstat (limited to 'src/libcharon')
-rw-r--r-- | src/libcharon/plugins/ha/ha_dispatcher.c | 3 |
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: |