unix: fix memcpy when copying hints on uv_getaddrinfo
This commit is contained in:
parent
c9ae7a6f95
commit
b594dba248
@ -639,7 +639,7 @@ int uv_getaddrinfo(uv_loop_t* loop,
|
||||
|
||||
if (hints) {
|
||||
handle->hints = malloc(sizeof(struct addrinfo));
|
||||
memcpy(&handle->hints, hints, sizeof(struct addrinfo));
|
||||
memcpy(handle->hints, hints, sizeof(struct addrinfo));
|
||||
}
|
||||
else {
|
||||
handle->hints = NULL;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user