From 1f6cf18183e46ca88d4ba928d4e1f5c3b2219b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 27 Dec 2021 18:09:22 +0100 Subject: [PATCH] MINOR: quic: Wrong first packet number space computation I really do not know where does these inversion come from. --- include/haproxy/quic_loss.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/quic_loss.h b/include/haproxy/quic_loss.h index 092046f12..04b5084bd 100644 --- a/include/haproxy/quic_loss.h +++ b/include/haproxy/quic_loss.h @@ -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]; }