]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
ssl/quic/quic_port.c: Fix endianness of supported versions in sent version negotiatio...
authorNikolas Gauder <nikolas.gauder@tum.de>
Mon, 4 Aug 2025 19:12:35 +0000 (21:12 +0200)
committerNeil Horman <nhorman@openssl.org>
Wed, 6 Aug 2025 12:19:48 +0000 (08:19 -0400)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28169)

ssl/quic/quic_port.c

index 97eb6634fbb387d9b7dc0cadd4710da2e6a4ba67..bb691df698e0ca19e4abc65f7642c41d647e7c4e 100644 (file)
@@ -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;
     }