forked from rpms/rpcbind
13 lines
524 B
Diff
13 lines
524 B
Diff
|
--- rpcbind-0.1.4/src/util.c.iff_up 2007-05-22 11:14:39.000000000 -0400
|
||
|
+++ rpcbind-0.1.4/src/util.c 2007-05-22 11:14:56.000000000 -0400
|
||
|
@@ -359,7 +359,8 @@ network_init()
|
||
|
* interface, join the RPC multicast group on that interface.
|
||
|
*/
|
||
|
for (ifap = ifp; ifap != NULL; ifap = ifap->ifa_next) {
|
||
|
- if (ifap->ifa_addr->sa_family != AF_INET6 ||
|
||
|
+ if (!ifap->ifa_addr ||
|
||
|
+ ifap->ifa_addr->sa_family != AF_INET6 ||
|
||
|
!(ifap->ifa_flags & IFF_MULTICAST))
|
||
|
continue;
|
||
|
ifindex = if_nametoindex(ifap->ifa_name);
|