Commit 9f9df4b6 by Sebastian Bauer

Copy into the correct destination.

parent ea5942b4
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment