ike-sa: Add option to force the destruction of an IKE_SA after initiating a delete
This commit is contained in:
@@ -64,7 +64,7 @@ METHOD(job_t, execute, job_requeue_t,
|
||||
}
|
||||
if (this->delete_if_established)
|
||||
{
|
||||
if (ike_sa->delete(ike_sa) == DESTROY_ME)
|
||||
if (ike_sa->delete(ike_sa, FALSE) == DESTROY_ME)
|
||||
{
|
||||
charon->ike_sa_manager->checkin_and_destroy(
|
||||
charon->ike_sa_manager, ike_sa);
|
||||
|
||||
@@ -101,7 +101,7 @@ METHOD(job_t, execute, job_requeue_t,
|
||||
{
|
||||
DBG1(DBG_JOB, "deleting IKE_SA after %d seconds "
|
||||
"of CHILD_SA inactivity", this->timeout);
|
||||
status = ike_sa->delete(ike_sa);
|
||||
status = ike_sa->delete(ike_sa, FALSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user