Destroy IKE_SA after reauthentication initiatend and lifetime limit reached

This commit is contained in:
Martin Willi 2012-01-04 17:50:19 +01:00
parent cb1a145ce2
commit 3a0b67bce5
1 changed files with 6 additions and 1 deletions

View File

@ -1296,8 +1296,13 @@ METHOD(ike_sa_t, delete_, status_t,
{
switch (this->state)
{
case IKE_ESTABLISHED:
case IKE_REKEYING:
if (this->version == IKEV1)
{ /* SA has been reauthenticated, delete */
break;
}
/* FALL */
case IKE_ESTABLISHED:
this->task_manager->queue_ike_delete(this->task_manager);
return this->task_manager->initiate(this->task_manager);
case IKE_CREATED: