mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-06 16:43:35 +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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user