Co-authored-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28023)
(cherry picked from commit
4a3c954a0cdb9fa1f511ce43bb4833303a6067e2)
* Only re-arm timer if stack has sent at least one ACK eliciting frame.
* If stack has sent no ACK eliciting at given encryption level then
* particular timer is zero and we must not attempt to set it. Timer time
- * runs since epoch (Jan 1 1970 and we must not set timer to past.
+ * runs since epoch (Jan 1 1970) and we must not set timer to past.
*/
if (!ossl_time_is_zero(ackm->time_of_last_ack_eliciting_pkt[i])) {
t = ossl_time_add(ackm->time_of_last_ack_eliciting_pkt[i], duration);