summaryrefslogtreecommitdiff
path: root/src/libcharon/processing/jobs
diff options
context:
space:
mode:
authorYves-Alexis Perez <corsac@debian.org>2013-11-01 13:32:07 +0100
committerYves-Alexis Perez <corsac@debian.org>2013-11-01 13:32:07 +0100
commit5313d2d78ca150515f7f5eb39801c100690b6b29 (patch)
treec78e420367283bb1b16f14210b12687cdfbd26eb /src/libcharon/processing/jobs
parent6b99c8d9cff7b3e8ae8f3204b99e7ea40f791349 (diff)
downloadvyos-strongswan-5313d2d78ca150515f7f5eb39801c100690b6b29.tar.gz
vyos-strongswan-5313d2d78ca150515f7f5eb39801c100690b6b29.zip
Imported Upstream version 5.1.1
Diffstat (limited to 'src/libcharon/processing/jobs')
-rw-r--r--src/libcharon/processing/jobs/adopt_children_job.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/libcharon/processing/jobs/adopt_children_job.c b/src/libcharon/processing/jobs/adopt_children_job.c
index df5b70c0f..f99c0b932 100644
--- a/src/libcharon/processing/jobs/adopt_children_job.c
+++ b/src/libcharon/processing/jobs/adopt_children_job.c
@@ -102,8 +102,12 @@ METHOD(job_t, execute, job_requeue_t,
children->insert_last(children, child_sa);
}
childenum->destroy(childenum);
- DBG1(DBG_IKE, "detected reauth of existing IKE_SA, "
- "adopting %d children", children->get_count(children));
+ if (children->get_count(children))
+ {
+ DBG1(DBG_IKE, "detected reauth of existing IKE_SA, "
+ "adopting %d children",
+ children->get_count(children));
+ }
ike_sa->set_state(ike_sa, IKE_DELETING);
charon->bus->ike_updown(charon->bus, ike_sa, FALSE);
charon->ike_sa_manager->checkin_and_destroy(