From: Nikolas Gauder Date: Mon, 4 Aug 2025 19:12:35 +0000 (+0200) Subject: ssl/quic/quic_port.c: Fix endianness of supported versions in sent version negotiatio... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b24455a9fb253b6d26e81e83d6adc2a615ff4b9;p=thirdparty%2Fopenssl.git 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) --- diff --git a/ssl/quic/quic_port.c b/ssl/quic/quic_port.c index 97eb6634fbb..bb691df698e 100644 --- a/ssl/quic/quic_port.c +++ b/ssl/quic/quic_port.c @@ -1270,7 +1270,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; }