aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/bus
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2017-07-12 13:00:59 +0200
committerTobias Brunner <tobias@strongswan.org>2017-08-07 10:44:05 +0200
commitf9fbcbb1a00d631bbd9d6ee1209251b3ee85dbaf (patch)
tree1baa4a4817a5cac42736d8590fb4a818c3c07844 /src/libcharon/bus
parentd24b831fe7def230cc604a2a2bf3f1a05a523c23 (diff)
downloadstrongswan-f9fbcbb1a00d631bbd9d6ee1209251b3ee85dbaf.tar.bz2
strongswan-f9fbcbb1a00d631bbd9d6ee1209251b3ee85dbaf.tar.xz
bus: Don't trigger child_updown() for rekeyed CHILD_SAs
We don't trigger it either when they are deleted individually.
Diffstat (limited to 'src/libcharon/bus')
-rw-r--r--src/libcharon/bus/bus.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libcharon/bus/bus.c b/src/libcharon/bus/bus.c
index 77a910197..19943d060 100644
--- a/src/libcharon/bus/bus.c
+++ b/src/libcharon/bus/bus.c
@@ -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);
}