Commit 92dcf84d49 for openssl.org
commit 92dcf84d49fa8632bacb17f0f578d4cfa4c170fa
Author: Neil Horman <nhorman@openssl.org>
Date: Wed Sep 16 16:19:14 2026 -0400
Fix rx_max_udp_payload_length default for QUIC
RFC 9000 says that, if the peer doesn't transmit a max_udp_payload_len
transport parameter, the default should be 65527. We update it properly
if they send it, but our default in the event they don't is 1200.
Correct that.
Fixes #32845
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Merge-date: Mon Sep 21 09:52:44 2026
Merged-from: https://github.com/openssl/openssl/pull/32860
diff --git a/ssl/quic/quic_channel.c b/ssl/quic/quic_channel.c
index dc6b3342e2..117bf50eb1 100644
--- a/ssl/quic/quic_channel.c
+++ b/ssl/quic/quic_channel.c
@@ -169,7 +169,7 @@ static int ch_init(QUIC_CHANNEL *ch)
qtx_args.get_qlog_cb = ch_get_qlog_cb;
qtx_args.get_qlog_cb_arg = ch;
qtx_args.mdpl = QUIC_MIN_INITIAL_DGRAM_LEN;
- ch->rx_max_udp_payload_size = qtx_args.mdpl;
+ ch->rx_max_udp_payload_size = QUIC_DEFAULT_MAX_UDP_PAYLOAD_SIZE;
ch->ping_deadline = ossl_time_infinite();