ssl/quic/quic_port.c: Fix endianness of supported versions in sent version negotiation packets

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 2b24455a9f)
This commit is contained in:
Nikolas Gauder 2025-08-04 21:12:35 +02:00 committed by Neil Horman
parent 4fb6c93b93
commit d4ab163090
1 changed files with 1 additions and 1 deletions

View 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;
}