]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: Missing initialization (packet number space probing)
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 14 Jun 2023 09:34:47 +0000 (11:34 +0200)
committerFrédéric Lécaille <flecaille@haproxy.com>
Wed, 14 Jun 2023 09:35:22 +0000 (11:35 +0200)
->tx.pto_probe member of quic_pktns struct was not initialized by quic_pktns_init().
This bug never occured because all quic_pktns structs are attached to quic_conn
structs which are always pool_zalloc()'ed.

Must be backported as far as 2.6.

include/haproxy/quic_conn.h

index ba2df6434bf2772228a1b3e0a8f2724d097ede83..60deeadf50842587bcac53e5ad92cb85f48eab89 100644 (file)
@@ -413,6 +413,7 @@ static inline void quic_pktns_init(struct quic_pktns *pktns)
        pktns->tx.pkts = EB_ROOT_UNIQUE;
        pktns->tx.time_of_last_eliciting = 0;
        pktns->tx.loss_time = TICK_ETERNITY;
+       pktns->tx.pto_probe = 0;
        pktns->tx.in_flight = 0;
        pktns->tx.ack_delay = 0;