ike: Fix retransmission timeouts if base is <= 1
Fixes: 72b282cf20 ("ike: Properly support high number of retransmission tries")
This commit is contained in:
@@ -372,7 +372,7 @@ static status_t retransmit_packet(private_task_manager_t *this, uint32_t seqnr,
|
||||
charon->bus->alert(charon->bus, ALERT_RETRANSMIT_SEND_TIMEOUT, packet);
|
||||
return DESTROY_ME;
|
||||
}
|
||||
if (this->retransmit_tries_max &&
|
||||
if (!this->retransmit_tries_max ||
|
||||
retransmitted <= this->retransmit_tries_max)
|
||||
{
|
||||
t = (uint32_t)(this->retransmit_timeout * 1000.0 *
|
||||
|
||||
@@ -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