mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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.
This commit is contained in:
parent
beec29c305
commit
7949e4c53f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user