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
This commit is contained in:
Frédéric Lécaille 2022-08-05 09:34:44 +02:00 committed by Amaury Denoyelle
parent 8ecb7363b5
commit e7df68a219

View File

@ -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,