aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-04-05 13:45:04 +0200
committerTobias Brunner <tobias@strongswan.org>2013-04-05 16:03:10 +0200
commit14edee56bf8dbba56841f1335729942f59f485f5 (patch)
tree4096f338e9c88a8767bc2f8f42fb0bc42b3a961f /src
parent8dade2d14653ccabf2add237ecab4c86493b8439 (diff)
downloadstrongswan-14edee56bf8dbba56841f1335729942f59f485f5.tar.bz2
strongswan-14edee56bf8dbba56841f1335729942f59f485f5.tar.xz
unity: Check IKE_SA in only after enumerating virtual IPs
Diffstat (limited to 'src')
-rw-r--r--src/libcharon/plugins/unity/unity_handler.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcharon/plugins/unity/unity_handler.c b/src/libcharon/plugins/unity/unity_handler.c
index 9d145b93f..3dec7a3b6 100644
--- a/src/libcharon/plugins/unity/unity_handler.c
+++ b/src/libcharon/plugins/unity/unity_handler.c
@@ -190,8 +190,6 @@ static job_requeue_t add_exclude_async(entry_t *entry)
child_cfg->add_traffic_selector(child_cfg, TRUE,
traffic_selector_create_from_subnet(host->clone(host),
32, 0, 0, 65535));
- charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
-
enumerator = ike_sa->create_virtual_ip_enumerator(ike_sa, TRUE);
while (enumerator->enumerate(enumerator, &host))
{
@@ -200,6 +198,7 @@ static job_requeue_t add_exclude_async(entry_t *entry)
32, 0, 0, 65535));
}
enumerator->destroy(enumerator);
+ charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
charon->shunts->install(charon->shunts, child_cfg);
child_cfg->destroy(child_cfg);