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:
@@ -1713,6 +1713,10 @@ METHOD(ike_sa_t, retransmit, status_t,
|
||||
reestablish(this);
|
||||
break;
|
||||
}
|
||||
if (this->state != IKE_CONNECTING)
|
||||
{
|
||||
charon->bus->ike_updown(charon->bus, &this->public, FALSE);
|
||||
}
|
||||
return DESTROY_ME;
|
||||
}
|
||||
return SUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user