Commit 42146d9a authored by Niels Möller's avatar Niels Möller
Browse files

(address_info2sockaddr): Zero-terminate the

default_preferences list.

Rev: src/io.c:1.162
parent caec7ff7
......@@ -1117,7 +1117,7 @@ address_info2sockaddr(socklen_t *length,
struct sockaddr *res;
const int default_preference
#if WITH_IPV6
[3] = { AF_INET, AF_INET6 }
[3] = { AF_INET, AF_INET6, 0 }
#else
[2] = { AF_INET, 0 }
#endif
......
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