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.
This commit is contained in:
parent
ee99f37ecc
commit
9c19d7ca31
|
@ -102,8 +102,12 @@ METHOD(job_t, execute, job_requeue_t,
|
||||||
children->insert_last(children, child_sa);
|
children->insert_last(children, child_sa);
|
||||||
}
|
}
|
||||||
childenum->destroy(childenum);
|
childenum->destroy(childenum);
|
||||||
DBG1(DBG_IKE, "detected reauth of existing IKE_SA, "
|
if (children->get_count(children))
|
||||||
"adopting %d children", 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);
|
ike_sa->set_state(ike_sa, IKE_DELETING);
|
||||||
charon->bus->ike_updown(charon->bus, ike_sa, FALSE);
|
charon->bus->ike_updown(charon->bus, ike_sa, FALSE);
|
||||||
charon->ike_sa_manager->checkin_and_destroy(
|
charon->ike_sa_manager->checkin_and_destroy(
|
||||||
|
|
Loading…
Reference in New Issue