mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 23:27:04 +02:00
BUG/MINOR: quic: fix version negotiation packet generation
Fix wrong memcpy usage for source and connection ID in generated Version Negotiation packet.
This commit is contained in:
parent
6232d11626
commit
10eed8ed03
@ -3527,12 +3527,12 @@ static int qc_send_version_negotiation(int fd, struct sockaddr_storage *addr,
|
||||
|
||||
/* source connection id */
|
||||
buf[i++] = pkt->scid.len;
|
||||
memcpy(buf, pkt->scid.data, pkt->scid.len);
|
||||
memcpy(&buf[i], pkt->scid.data, pkt->scid.len);
|
||||
i += pkt->scid.len;
|
||||
|
||||
/* destination connection id */
|
||||
buf[i++] = pkt->dcid.len;
|
||||
memcpy(buf, pkt->dcid.data, pkt->dcid.len);
|
||||
memcpy(&buf[i], pkt->dcid.data, pkt->dcid.len);
|
||||
i += pkt->dcid.len;
|
||||
|
||||
/* supported version */
|
||||
|
Loading…
Reference in New Issue
Block a user