mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
BUG/MINOR: quic: Wrong endianess for version field in Retry token
This field must be sent in network byte order. Must be backported as far as 2.6.
This commit is contained in:
parent
5997d18c78
commit
17eaee31c3
@ -6424,7 +6424,7 @@ static int quic_generate_retry_token_aad(unsigned char *aad,
|
|||||||
unsigned char *p;
|
unsigned char *p;
|
||||||
|
|
||||||
p = aad;
|
p = aad;
|
||||||
memcpy(p, &version, sizeof version);
|
*(uint32_t *)p = htonl(version);
|
||||||
p += sizeof version;
|
p += sizeof version;
|
||||||
p += quic_saddr_cpy(p, addr);
|
p += quic_saddr_cpy(p, addr);
|
||||||
memcpy(p, cid->data, cid->len);
|
memcpy(p, cid->data, cid->len);
|
||||||
|
Loading…
Reference in New Issue
Block a user