From d4ab1630908eaac57388de0be1fa21d0c1f17c9a Mon Sep 17 00:00:00 2001 From: Nikolas Gauder Date: Mon, 4 Aug 2025 21:12:35 +0200 Subject: [PATCH] ssl/quic/quic_port.c: Fix endianness of supported versions in sent version negotiation packets Reviewed-by: Neil Horman Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/28169) (cherry picked from commit 2b24455a9fb253b6d26e81e83d6adc2a615ff4b9) --- 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 684c088c08c..680d2b4afa9 100644 --- a/ssl/quic/quic_port.c +++ b/ssl/quic/quic_port.c @@ -1267,7 +1267,7 @@ static void port_send_version_negotiation(QUIC_PORT *port, BIO_ADDR *peer, * Add the array of supported versions to the end of the packet */ for (i = 0; i < OSSL_NELEM(supported_versions); i++) { - if (!WPACKET_put_bytes_u32(&wpkt, htonl(supported_versions[i]))) + if (!WPACKET_put_bytes_u32(&wpkt, supported_versions[i])) return; } -- 2.47.2