diff options
author | Steve Dickson <steved@redhat.com> | 2008-06-23 11:44:54 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-06-23 11:44:54 -0400 |
commit | 592d6b53f1ccf0bb9b7861395df689d1fca901f1 (patch) | |
tree | ee71e845282e2e62cbcec030d7eb84167631403f | |
parent | 34e3fdf4d72e222bb2cf884ba000716689a0a932 (diff) | |
download | rpcbind-592d6b53f1ccf0bb9b7861395df689d1fca901f1.tar.gz |
Fixed an ipv6 related segfault on startup.
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | src/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |