bus: Don't trigger child_updown for deleted CHILD_SAs

These were rekeyed but have not been destroyed yet.
This commit is contained in:
Tobias Brunner
2018-04-09 17:13:41 +02:00
parent 16898026a5
commit 3a3136ef33
+2 -1
View File
@@ -827,7 +827,8 @@ METHOD(bus_t, ike_updown, void,
enumerator = ike_sa->create_child_sa_enumerator(ike_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);
}