Fix IKEv1 DPD clear, destroying IKE_SA even if reestablish not needed
This commit is contained in:
@@ -77,15 +77,9 @@ METHOD(job_t, execute, void,
|
|||||||
if (use_time < this->check)
|
if (use_time < this->check)
|
||||||
{
|
{
|
||||||
DBG1(DBG_JOB, "DPD check timed out, enforcing DPD action");
|
DBG1(DBG_JOB, "DPD check timed out, enforcing DPD action");
|
||||||
if (ike_sa->reestablish(ike_sa) == SUCCESS)
|
ike_sa->reestablish(ike_sa);
|
||||||
{
|
charon->ike_sa_manager->checkin_and_destroy(charon->ike_sa_manager,
|
||||||
charon->ike_sa_manager->checkin_and_destroy(
|
ike_sa);
|
||||||
charon->ike_sa_manager, ike_sa);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
charon->ike_sa_manager->checkin(charon->ike_sa_manager, ike_sa);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user