ikev1: Handle queued TRANSACTION messages only after processing replies

This commit is contained in:
Tobias Brunner
2015-10-30 10:30:07 +01:00
parent 3f56f73159
commit 3805880c8a
+2 -1
View File
@@ -1167,7 +1167,8 @@ static status_t process_response(private_task_manager_t *this,
this->initiating.type = EXCHANGE_TYPE_UNDEFINED;
clear_packets(this->initiating.packets);
if (this->queued && this->active_tasks->get_count(this->active_tasks) == 0)
if (this->queued && !this->active_tasks->get_count(this->active_tasks) &&
this->queued->get_exchange_type(this->queued) == TRANSACTION)
{
queued = this->queued;
this->queued = NULL;