Invoke ike_updown hooks for reauthenticated IKEv1 SAs
This commit is contained in:
1 parent
b6ac063c36
commit
1a0648490c
2 files changed
+2
No files matched your search
@@ -104,6 +104,7 @@ METHOD(job_t, execute, void,
|
||||
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(
|
||||
charon->ike_sa_manager, ike_sa);
|
||||
}
|
||||
|
||||
@@ -1318,6 +1318,7 @@ METHOD(ike_sa_t, delete_, status_t,
|
||||
case IKE_REKEYING:
|
||||
if (this->version == IKEV1)
|
||||
{ /* SA has been reauthenticated, delete */
|
||||
charon->bus->ike_updown(charon->bus, &this->public, FALSE);
|
||||
break;
|
||||
}
|
||||
/* FALL */
|
||||
|
||||
Reference in new issue
Block a user