Check if we actually have a packet before retransmitting it
authorMartin Willi <martin@revosec.ch>
Tue, 21 Feb 2012 09:23:20 +0000 (10:23 +0100)
committerMartin Willi <martin@revosec.ch>
Tue, 20 Mar 2012 16:31:40 +0000 (17:31 +0100)
src/libcharon/sa/ikev2/task_manager_v2.c

index 178cec6..d12f5c9 100644 (file)
@@ -201,7 +201,7 @@ static bool activate_task(private_task_manager_t *this, task_type_t type)
 METHOD(task_manager_t, retransmit, status_t,
        private_task_manager_t *this, u_int32_t message_id)
 {
-       if (message_id == this->initiating.mid)
+       if (this->initiating.packet && message_id == this->initiating.mid)
        {
                u_int32_t timeout;
                job_t *job;