]> 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:31:18 +0000 (08:31 -0400)
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28169)

(cherry picked from commit 2b24455a9fb253b6d26e81e83d6adc2a615ff4b9)

ssl/quic/quic_port.c

index 684c088c08c050c446898ef2292ebbb80b67382f..680d2b4afa9b90057be4ef3839dbc8cc1ffd4fd0 100644 (file)
@@ -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;
     }