aboutsummaryrefslogtreecommitdiff
path: root/docs/code/multi-echo-server/main.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2020-05-12 12:38:56 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2020-05-12 12:39:35 +0200
commit36549815eed297c74448ff580b5c84713245ec5d (patch)
treede3557ebab2047de550172ba833afdf34abc0f1f /docs/code/multi-echo-server/main.c
parent78c65d0f10b1c6613df38c74ecc1cab1482af2a6 (diff)
downloadlibuv-36549815eed297c74448ff580b5c84713245ec5d.tar.gz
libuv-36549815eed297c74448ff580b5c84713245ec5d.zip
unix,win: fix wrong sizeof argument to memcpy()
Libuv was copying `sizeof(struct sockaddr_storage)` bytes from source to destination but the source was only `sizeof(struct sockaddr_in6)` bytes big, or approximately 128 vs. 16 bytes. Fixes: https://github.com/libuv/libuv/issues/2840 PR-URL: https://github.com/libuv/libuv/pull/2841 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Diffstat (limited to 'docs/code/multi-echo-server/main.c')
0 files changed, 0 insertions, 0 deletions