]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: quic: Largest RX packet numbers mixing
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 24 May 2022 08:54:42 +0000 (10:54 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 30 May 2022 07:59:26 +0000 (09:59 +0200)
When we select the next encryption level in qc_treat_rx_pkts() we
must reset the local largest_pn variable if we do not want to reuse its
previous value for this encryption. This bug could only happend during
handshake step and had no visible impact because this variable
is only used during the header protection removal step which hopefully
supports the packet reordering.

src/xprt_quic.c

index de65b7f656681b891789502a8ad7778781ebe24d..dd1bbbe7ea0608f5562603325ccd54ef6cbd50e6 100644 (file)
@@ -3598,6 +3598,7 @@ int qc_treat_rx_pkts(struct quic_enc_level *cur_el, struct quic_enc_level *next_
        if (qel == cur_el) {
                BUG_ON(qel == next_el);
                qel = next_el;
+               largest_pn = -1;
                goto next_tel;
        }