From: sashan Date: Mon, 21 Jul 2025 06:57:41 +0000 (+0200) Subject: - fix RFC reference and indentation X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1e009ea0788d7cd2ca0b6855ed32581ff9a41ab;p=thirdparty%2Fopenssl.git - fix RFC reference and indentation Reviewed-by: Neil Horman Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/28023) (cherry picked from commit a43b926fd2c73349c9eb6167f08a4d435e6f04a6) --- diff --git a/ssl/quic/quic_ackm.c b/ssl/quic/quic_ackm.c index 40b290aaf40..d337c49acac 100644 --- a/ssl/quic/quic_ackm.c +++ b/ssl/quic/quic_ackm.c @@ -859,7 +859,7 @@ static OSSL_TIME ackm_get_pto_time_and_space(OSSL_ACKM *ackm, int *space) for (i = QUIC_PN_SPACE_INITIAL; i < QUIC_PN_SPACE_NUM; ++i) { /* - * RFC 9002 section 5.2.2.1 keep probe timeout armed until + * RFC 9002 section 6.2.2.1 keep probe timeout armed until * handshake is confirmed (client sees HANDSHAKE_DONE message * from server). */ @@ -886,16 +886,16 @@ static OSSL_TIME ackm_get_pto_time_and_space(OSSL_ACKM *ackm, int *space) /* * 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. + * If stack has sent no ACK eliciting frame at given encryption level then + * particular timer is zero and we must not attempt to set it. Timer keeps + * time 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); - if (ossl_time_compare(t, pto_timeout) < 0) { - pto_timeout = t; - pto_space = i; - } + t = ossl_time_add(ackm->time_of_last_ack_eliciting_pkt[i], duration); + if (ossl_time_compare(t, pto_timeout) < 0) { + pto_timeout = t; + pto_space = i; + } } }