summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2008-06-23 11:44:54 -0400
committerSteve Dickson <steved@redhat.com>2008-06-23 11:44:54 -0400
commit592d6b53f1ccf0bb9b7861395df689d1fca901f1 (patch)
treeee71e845282e2e62cbcec030d7eb84167631403f
parent34e3fdf4d72e222bb2cf884ba000716689a0a932 (diff)
downloadrpcbind-592d6b53f1ccf0bb9b7861395df689d1fca901f1.tar.gz
Fixed an ipv6 related segfault on startup.
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index a3b61df..9a5fb69 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);