Check if we actually have an initiating packet to free while processing responses

This commit is contained in:
Martin Willi
2012-05-23 11:50:12 +02:00
parent 2ac996cb71
commit 51754f6654
+1 -1
View File
@@ -978,7 +978,7 @@ static status_t process_response(private_task_manager_t *this,
enumerator->destroy(enumerator);
this->initiating.type = EXCHANGE_TYPE_UNDEFINED;
this->initiating.packet->destroy(this->initiating.packet);
DESTROY_IF(this->initiating.packet);
this->initiating.packet = NULL;
if (this->queued && this->active_tasks->get_count(this->active_tasks) == 0)