diff options
Diffstat (limited to 'sunrpc/pmap_rmt.c')
-rw-r--r-- | sunrpc/pmap_rmt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sunrpc/pmap_rmt.c b/sunrpc/pmap_rmt.c index 4ff707a..644d503 100644 --- a/sunrpc/pmap_rmt.c +++ b/sunrpc/pmap_rmt.c @@ -191,6 +191,7 @@ getbroadcastnets (struct in_addr *addrs, int naddrs) { if ((run->ifa_flags & IFF_BROADCAST) != 0 && (run->ifa_flags & IFF_UP) != 0 + && run->ifa_addr != NULL && run->ifa_addr->sa_family == AF_INET) /* Copy the broadcast address. */ addrs[i++] = ((struct sockaddr_in *) run->ifa_broadaddr)->sin_addr; |