diff options
author | David Leadbeater <dgl@dgl.cx> | 2014-07-06 19:56:13 +0100 |
---|---|---|
committer | David Leadbeater <dgl@dgl.cx> | 2014-07-06 19:56:13 +0100 |
commit | 7949e4c53f8bc8cb0b28f38b7a08db49a00f8b01 (patch) | |
tree | 16cc00008efeb0bba66a31b5263f813db948234a | |
parent | beec29c3054acc262ac2dbef5b29c1e279a6fdb3 (diff) | |
download | irssi-7949e4c53f8bc8cb0b28f38b7a08db49a00f8b01.zip |
Initialize in6 correctly
This is technically wrong as it then gets used as an IPv4 sockaddr, but it only
needs to be some 0s so this is easier than changing the IPADDR data structure or
adding a new API.
-rw-r--r-- | src/core/network.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/network.c b/src/core/network.c index de5abbbe..3659ab36 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -60,7 +60,11 @@ GIOChannel *g_io_channel_new(int handle) IPADDR ip4_any = { AF_INET, +#if defined(HAVE_IPV6) && defined(IN6ADDR_ANY_INIT) + IN6ADDR_ANY_INIT +#else { INADDR_ANY } +#endif }; int net_ip_compare(IPADDR *ip1, IPADDR *ip2) |