Do not sync a delete for a child in a destroying IKE_SA
This commit is contained in:
committed by
Martin Willi
parent
5a0a359b88
commit
f4f394e67c
@@ -116,7 +116,9 @@ static bool child_keys(private_ha_sync_child_t *this, ike_sa_t *ike_sa,
|
|||||||
static bool child_state_change(private_ha_sync_child_t *this, ike_sa_t *ike_sa,
|
static bool child_state_change(private_ha_sync_child_t *this, ike_sa_t *ike_sa,
|
||||||
child_sa_t *child_sa, child_sa_state_t state)
|
child_sa_t *child_sa, child_sa_state_t state)
|
||||||
{
|
{
|
||||||
if (!ike_sa || ike_sa->get_state(ike_sa) == IKE_PASSIVE)
|
if (!ike_sa ||
|
||||||
|
ike_sa->get_state(ike_sa) == IKE_PASSIVE ||
|
||||||
|
ike_sa->get_state(ike_sa) == IKE_DESTROYING)
|
||||||
{ /* only sync active IKE_SAs */
|
{ /* only sync active IKE_SAs */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
@@ -125,6 +127,7 @@ static bool child_state_change(private_ha_sync_child_t *this, ike_sa_t *ike_sa,
|
|||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (state == CHILD_DESTROYING)
|
if (state == CHILD_DESTROYING)
|
||||||
{
|
{
|
||||||
ha_sync_message_t *m;
|
ha_sync_message_t *m;
|
||||||
|
|||||||
Reference in New Issue
Block a user