3 @@ -129,6 +129,7 @@ int iface_enumerate(void *parm, int (*ip
5 static unsigned int seq = 0;
11 @@ -207,9 +208,12 @@ int iface_enumerate(void *parm, int (*ip
12 rta = RTA_NEXT(rta, len1);
15 - if (addr.s_addr && ipv4_callback)
16 + if (addr.s_addr && ipv4_callback) {
17 if (!((*ipv4_callback)(addr, ifa->ifa_index, netmask, broadcast, parm)))
24 else if (ifa->ifa_family == AF_INET6)
25 @@ -225,7 +229,7 @@ int iface_enumerate(void *parm, int (*ip
27 if (addrp && ipv6_callback)
28 if (!((*ipv6_callback)(addrp, ifa->ifa_index, ifa->ifa_index, parm)))
36 @@ -296,7 +296,7 @@ static int create_ipv6_listener(struct l
37 bind(tcpfd, (struct sockaddr *)&addr, sa_len(&addr)) == -1 ||
38 listen(tcpfd, 5) == -1 ||
39 bind(fd, (struct sockaddr *)&addr, sa_len(&addr)) == -1)
43 l = safe_malloc(sizeof(struct listener));