Trigger ike_updown event caused by retransmits only after reestablish() has been called
This allows listeners to migrate to the new IKE_SA with the ike_reestablish event without having to worry about an ike_updown event for the old IKE_SA.
This commit is contained in:
@@ -257,10 +257,6 @@ METHOD(task_manager_t, retransmit, status_t,
|
||||
{
|
||||
DBG1(DBG_IKE, "giving up after %d retransmits",
|
||||
this->initiating.retransmitted - 1);
|
||||
if (this->ike_sa->get_state(this->ike_sa) != IKE_CONNECTING)
|
||||
{
|
||||
charon->bus->ike_updown(charon->bus, this->ike_sa, FALSE);
|
||||
}
|
||||
return DESTROY_ME;
|
||||
}
|
||||
|
||||
@@ -282,7 +278,6 @@ METHOD(task_manager_t, retransmit, status_t,
|
||||
{
|
||||
DBG1(DBG_IKE, "giving up after %d path probings",
|
||||
this->initiating.retransmitted - 1);
|
||||
charon->bus->ike_updown(charon->bus, this->ike_sa, FALSE);
|
||||
return DESTROY_ME;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user