Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f9df4b

Browse files
committed
Copy into the correct destination.
1 parent ea5942b commit 9f9df4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/posix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int p_getaddrinfo(
6666
p_freeaddrinfo(ainfo);
6767
return -1;
6868
}
69-
memcpy(&ai->ai_next, ainfo, sizeof(struct addrinfo));
69+
memcpy(ai->ai_next, ainfo, sizeof(struct addrinfo));
7070
memcpy(&ai->ai_next->ai_addr_in.sin_addr,
7171
ainfo->ai_hostent->h_addr_list[p],
7272
ainfo->ai_hostent->h_length);

0 commit comments

Comments
 (0)