Fixes: 72b282cf202d ("ike: Properly support high number of retransmission tries")
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 *
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 *