aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/processing
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-09-18 13:59:44 +0200
committerMartin Willi <martin@revosec.ch>2013-09-30 13:51:11 +0200
commit9c19d7ca31f2a801935580f4b737f1ed3720f469 (patch)
tree97f63149274a25a5a0929d06a90e806ce5b0afcf /src/libcharon/processing
parentee99f37eccb08474b53eebb81761c038bf46c458 (diff)
downloadstrongswan-9c19d7ca31f2a801935580f4b737f1ed3720f469.tar.bz2
strongswan-9c19d7ca31f2a801935580f4b737f1ed3720f469.tar.xz
ikev1: Don't log a reauthentication detection message if no children adopted
When a replace unique policy is in place, the children get adopted during the uniqueness check. In this case the message is just misleading.
Diffstat (limited to 'src/libcharon/processing')
-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(