]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
- fix RFC reference and indentation
authorsashan <anedvedicky@gmail.com>
Mon, 21 Jul 2025 06:57:41 +0000 (08:57 +0200)
committerNeil Horman <nhorman@openssl.org>
Sun, 27 Jul 2025 09:02:03 +0000 (05:02 -0400)
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 a43b926fd2c73349c9eb6167f08a4d435e6f04a6)

ssl/quic/quic_ackm.c

index 40b290aaf40693b058a843c38728c2322f1dba76..d337c49acac1a992d6a0e80f6aad9d56b9cde654 100644 (file)
@@ -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;
+            }
         }
     }