Don't queue delete_ike_sa job when setting IKE_DELETING.

This avoids deleting IKE_SAs during reauthentication (without
trying to reestablish them).
This commit is contained in:
Tobias Brunner
2012-05-25 17:05:53 +02:00
parent 7457143072
commit c6da59f014
2 changed files with 1 additions and 9 deletions
-8
View File
@@ -678,14 +678,6 @@ METHOD(ike_sa_t, set_state, void,
}
break;
}
case IKE_DELETING:
{
/* delete may fail if a packet gets lost, so set a timeout */
job_t *job = (job_t*)delete_ike_sa_job_create(this->ike_sa_id, TRUE);
lib->scheduler->schedule_job(lib->scheduler, job,
HALF_OPEN_IKE_SA_TIMEOUT);
break;
}
default:
break;
}
+1 -1
View File
@@ -135,7 +135,7 @@ METHOD(task_t, build_r, status_t,
if (this->simultaneous)
{
/* wait for peer's response for our delete request, but set a timeout */
/* wait for peer's response for our delete request */
return SUCCESS;
}
if (!this->rekeyed)