diff options
author | Tobias Brunner <tobias@strongswan.org> | 2015-03-25 18:11:22 +0100 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2015-05-21 15:38:31 +0200 |
commit | 6a9a69ae58c68eeb821e5762631afe6a9b8c624b (patch) | |
tree | ac8c3cbf893c37346f066b90bced45ad6e11adf5 /src/libcharon/sa/ike_sa_manager.c | |
parent | 072d9dc3c66961090025b3802d48ab078c2d1852 (diff) | |
download | strongswan-6a9a69ae58c68eeb821e5762631afe6a9b8c624b.tar.bz2 strongswan-6a9a69ae58c68eeb821e5762631afe6a9b8c624b.tar.xz |
ikev1: Trigger children_migrate event if CHILD_SAs are adopted
Diffstat (limited to 'src/libcharon/sa/ike_sa_manager.c')
-rw-r--r-- | src/libcharon/sa/ike_sa_manager.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libcharon/sa/ike_sa_manager.c b/src/libcharon/sa/ike_sa_manager.c index 13fc74ff7..938f7848f 100644 --- a/src/libcharon/sa/ike_sa_manager.c +++ b/src/libcharon/sa/ike_sa_manager.c @@ -1737,7 +1737,8 @@ static void adopt_children_and_vips(ike_sa_t *old, ike_sa_t *new) host_t *vip; int chcount = 0, vipcount = 0; - + charon->bus->children_migrate(charon->bus, new->get_id(new), + new->get_unique_id(new)); enumerator = old->create_child_sa_enumerator(old); while (enumerator->enumerate(enumerator, &child_sa)) { @@ -1760,6 +1761,7 @@ static void adopt_children_and_vips(ike_sa_t *old, ike_sa_t *new) /* ...trigger the analogous event on the new SA */ charon->bus->set_sa(charon->bus, new); charon->bus->assign_vips(charon->bus, new, TRUE); + charon->bus->children_migrate(charon->bus, NULL, 0); charon->bus->set_sa(charon->bus, old); if (chcount || vipcount) |