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