]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Wrong first packet number space computation
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 27 Dec 2021 17:09:22 +0000 (18:09 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Tue, 4 Jan 2022 16:30:00 +0000 (17:30 +0100)
I really do not know where does these inversion come from.

include/haproxy/quic_loss.h

index 092046f12a28592142ac00caf4b05341419b1e77..04b5084bd29b33f0f94b8db9c6ec343c973961a3 100644 (file)
@@ -111,7 +111,7 @@ static inline struct quic_pktns *quic_loss_pktns(struct quic_conn *qc)
        TRACE_PROTO("pktns", QUIC_EV_CONN_SPTO, qc, pktns);
        for (i = QUIC_TLS_PKTNS_HANDSHAKE; i < QUIC_TLS_PKTNS_MAX; i++) {
                TRACE_PROTO("pktns", QUIC_EV_CONN_SPTO, qc, &qc->pktns[i]);
-               if (tick_isset(pktns->tx.loss_time) &&
+               if (!tick_isset(pktns->tx.loss_time) ||
                    qc->pktns[i].tx.loss_time < pktns->tx.loss_time)
                        pktns = &qc->pktns[i];
        }