bus: Don't trigger child_updown() for rekeyed CHILD_SAs

We don't trigger it either when they are deleted individually.
This commit is contained in:
Tobias Brunner
2017-08-07 10:44:05 +02:00
parent d24b831fe7
commit f9fbcbb1a0
+4 -1
View File
@@ -827,7 +827,10 @@ METHOD(bus_t, ike_updown, void,
enumerator = ike_sa->create_child_sa_enumerator(ike_sa);
while (enumerator->enumerate(enumerator, (void**)&child_sa))
{
child_updown(this, child_sa, FALSE);
if (child_sa->get_state(child_sa) != CHILD_REKEYED)
{
child_updown(this, child_sa, FALSE);
}
}
enumerator->destroy(enumerator);
}