diff options
author | Martin Willi <martin@revosec.ch> | 2010-07-27 09:18:06 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2010-07-27 09:18:06 +0200 |
commit | 7eeb687d593ffecbe788bdb2ca3aa49ee779b3e6 (patch) | |
tree | c1d6b3603f8be8a6b07102dc31c351ee894ccf1a | |
parent | 1c1f132abe095516028ef2babe6c71f566c33cc5 (diff) | |
download | strongswan-7eeb687d593ffecbe788bdb2ca3aa49ee779b3e6.tar.bz2 strongswan-7eeb687d593ffecbe788bdb2ca3aa49ee779b3e6.tar.xz |
Flush any remaining cache state if an IKE_SA goes down
-rw-r--r-- | src/libcharon/plugins/ha/ha_ike.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcharon/plugins/ha/ha_ike.c b/src/libcharon/plugins/ha/ha_ike.c index 67df391e9..1efba4e8f 100644 --- a/src/libcharon/plugins/ha/ha_ike.c +++ b/src/libcharon/plugins/ha/ha_ike.c @@ -208,8 +208,8 @@ METHOD(listener_t, ike_rekey, bool, METHOD(listener_t, ike_state_change, bool, private_ha_ike_t *this, ike_sa_t *ike_sa, ike_sa_state_t new) { - /* clean up cache if a passive IKE_SA goes away */ - if (ike_sa->get_state(ike_sa) == IKE_PASSIVE && new == IKE_DESTROYING) + /* delete any remaining cache entry if IKE_SA gets destroyed */ + if (new == IKE_DESTROYING) { this->cache->delete(this->cache, ike_sa); } |