From 2f01b094080d2e468778ef028fa549975fd40901 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Thu, 28 Nov 2024 07:42:56 -0500 Subject: [PATCH] Fix length check for datagram size in quic MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit RFC says we should only accept datagrams of at least 1200 bytes, so the check should discard anything under that, not over that Reviewed-by: Saša Nedvědický Reviewed-by: Tim Hudson (Merged from https://github.com/openssl/openssl/pull/26000) --- ssl/quic/quic_port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/quic/quic_port.c b/ssl/quic/quic_port.c index 58dbe60b389..ffe9c2947fb 100644 --- a/ssl/quic/quic_port.c +++ b/ssl/quic/quic_port.c @@ -964,7 +964,7 @@ static void port_default_packet_handler(QUIC_URXE *e, void *arg, * is a minimum of 1200 bytes in size */ - if (e->data_len >= 1200) + if (e->data_len < 1200) goto undesirable; /* -- 2.47.2