ike: Fix retransmission timeouts if base is <= 1
Fixes: 72b282cf20 ("ike: Properly support high number of retransmission tries")
This commit is contained in:
@@ -373,7 +373,7 @@ METHOD(task_manager_t, retransmit, status_t,
|
||||
packet);
|
||||
return DESTROY_ME;
|
||||
}
|
||||
if (this->retransmit_tries_max &&
|
||||
if (!this->retransmit_tries_max ||
|
||||
this->initiating.retransmitted <= this->retransmit_tries_max)
|
||||
{
|
||||
timeout = (uint32_t)(this->retransmit_timeout * 1000.0 *
|
||||
|
||||
Reference in New Issue
Block a user