Flush any remaining cache state if an IKE_SA goes down
This commit is contained in:
@@ -208,8 +208,8 @@ METHOD(listener_t, ike_rekey, bool,
|
|||||||
METHOD(listener_t, ike_state_change, bool,
|
METHOD(listener_t, ike_state_change, bool,
|
||||||
private_ha_ike_t *this, ike_sa_t *ike_sa, ike_sa_state_t new)
|
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 */
|
/* delete any remaining cache entry if IKE_SA gets destroyed */
|
||||||
if (ike_sa->get_state(ike_sa) == IKE_PASSIVE && new == IKE_DESTROYING)
|
if (new == IKE_DESTROYING)
|
||||||
{
|
{
|
||||||
this->cache->delete(this->cache, ike_sa);
|
this->cache->delete(this->cache, ike_sa);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user