task-manager: Only trigger retransmit cleared alert if there was at least one retransmit
[strongswan.git] / src / libcharon / sa / ikev2 / task_manager_v2.c
index ab0a2a2..60a262f 100644 (file)
@@ -709,7 +709,7 @@ static status_t process_response(private_task_manager_t *this,
        }
        enumerator->destroy(enumerator);
 
-       if (this->initiating.retransmitted)
+       if (this->initiating.retransmitted > 1)
        {
                packet_t *packet = NULL;
                array_get(this->initiating.packets, 0, &packet);