bus: Don't trigger child_updown for deleted CHILD_SAs
These were rekeyed but have not been destroyed yet.
This commit is contained in:
@@ -827,7 +827,8 @@ METHOD(bus_t, ike_updown, void,
|
|||||||
enumerator = ike_sa->create_child_sa_enumerator(ike_sa);
|
enumerator = ike_sa->create_child_sa_enumerator(ike_sa);
|
||||||
while (enumerator->enumerate(enumerator, (void**)&child_sa))
|
while (enumerator->enumerate(enumerator, (void**)&child_sa))
|
||||||
{
|
{
|
||||||
if (child_sa->get_state(child_sa) != CHILD_REKEYED)
|
if (child_sa->get_state(child_sa) != CHILD_REKEYED &&
|
||||||
|
child_sa->get_state(child_sa) != CHILD_DELETED)
|
||||||
{
|
{
|
||||||
child_updown(this, child_sa, FALSE);
|
child_updown(this, child_sa, FALSE);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user