mirror of https://github.com/openssl/openssl.git
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:
parent
4fb6c93b93
commit
d4ab163090
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue