Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > 6be44af0a222e724ca62575f31111553 > files > 1

rpcbind-0.1.5-2mdv2009.0.src.rpm

diff -Naur --exclude '*~' rpcbind-0.1.4/src/util.c rpcbind-0.1.4-fix-crash-with-ipv6-disabled/src/util.c
--- rpcbind-0.1.4/src/util.c	2005-01-03 14:36:53.000000000 +0100
+++ rpcbind-0.1.4-fix-crash-with-ipv6-disabled/src/util.c	2008-02-28 15:57:28.000000000 +0100
@@ -359,7 +359,8 @@
 	 * 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);