Commit 9f9df4b6e05cc5950953177a1cb48739f1ddfc29

Sebastian Bauer 2015-12-31T11:13:21

Copy into the correct destination.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/posix.c b/src/posix.c
index de9181a..c7201ba 100644
--- a/src/posix.c
+++ b/src/posix.c
@@ -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);