ikev2: Check for collisions after handling IKE deletion
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2007-2015 Tobias Brunner
|
* Copyright (C) 2007-2016 Tobias Brunner
|
||||||
* Copyright (C) 2007-2010 Martin Willi
|
* Copyright (C) 2007-2010 Martin Willi
|
||||||
* Hochschule fuer Technik Rapperswil
|
* Hochschule fuer Technik Rapperswil
|
||||||
*
|
*
|
||||||
@@ -849,6 +849,10 @@ static status_t build_response(private_task_manager_t *this, message_t *request)
|
|||||||
/* FALL */
|
/* FALL */
|
||||||
case DESTROY_ME:
|
case DESTROY_ME:
|
||||||
/* destroy IKE_SA, but SEND response first */
|
/* destroy IKE_SA, but SEND response first */
|
||||||
|
if (handle_collisions(this, task))
|
||||||
|
{
|
||||||
|
array_remove_at(this->passive_tasks, enumerator);
|
||||||
|
}
|
||||||
delete = TRUE;
|
delete = TRUE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user