From e7df68a2198f0bf7aa3079b769f8e0fe38011306 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Fri, 5 Aug 2022 09:34:44 +0200 Subject: [PATCH] BUG/MINOR: quic: Missing Initial packet dropping case An Initial packet shorter than 1200 bytes must be dropped. The test was there without the "goto drop"! Must be backported to 2.6 --- src/xprt_quic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index c193c5f75..e754d9e92 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -5334,6 +5334,7 @@ static void qc_lstnr_pkt_rcv(unsigned char *buf, const unsigned char *end, dgram->len < QUIC_INITIAL_PACKET_MINLEN) { TRACE_PROTO("Too short datagram with an Initial packet", QUIC_EV_CONN_LPKT, qc); HA_ATOMIC_INC(&prx_counters->too_short_initial_dgram); + goto drop; } /* When multiple QUIC packets are coalesced on the same UDP datagram, -- 2.47.3