Destroy IKE_SA after reauthentication initiatend and lifetime limit reached
This commit is contained in:
@@ -1296,8 +1296,13 @@ METHOD(ike_sa_t, delete_, status_t,
|
|||||||
{
|
{
|
||||||
switch (this->state)
|
switch (this->state)
|
||||||
{
|
{
|
||||||
case IKE_ESTABLISHED:
|
|
||||||
case IKE_REKEYING:
|
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);
|
this->task_manager->queue_ike_delete(this->task_manager);
|
||||||
return this->task_manager->initiate(this->task_manager);
|
return this->task_manager->initiate(this->task_manager);
|
||||||
case IKE_CREATED:
|
case IKE_CREATED:
|
||||||
|
|||||||
Reference in New Issue
Block a user