mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
Copy into the correct destination.
This commit is contained in:
parent
ea5942b4cf
commit
9f9df4b6e0
@ -66,7 +66,7 @@ int p_getaddrinfo(
|
||||
p_freeaddrinfo(ainfo);
|
||||
return -1;
|
||||
}
|
||||
memcpy(&ai->ai_next, ainfo, sizeof(struct addrinfo));
|
||||
memcpy(ai->ai_next, ainfo, sizeof(struct addrinfo));
|
||||
memcpy(&ai->ai_next->ai_addr_in.sin_addr,
|
||||
ainfo->ai_hostent->h_addr_list[p],
|
||||
ainfo->ai_hostent->h_length);
|
||||
|
Loading…
Reference in New Issue
Block a user