ike: Fix retransmission timeouts if base is <= 1

Fixes: 72b282cf20 ("ike: Properly support high number of retransmission tries")
This commit is contained in:
Tobias Brunner 2020-06-05 13:43:11 +02:00
parent a5e4322348
commit 62367f2c01
2 changed files with 2 additions and 2 deletions

View File

@ -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 *

View File

@ -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 *