(getbroadcastnets): Fix test for failing getifaddrs call.
authordrepper <drepper>
Tue, 28 Sep 2004 22:15:40 +0000 (22:15 +0000)
committerdrepper <drepper>
Tue, 28 Sep 2004 22:15:40 +0000 (22:15 +0000)
sunrpc/pmap_rmt.c

index e446f5e..4ff707a 100644 (file)
@@ -179,7 +179,7 @@ getbroadcastnets (struct in_addr *addrs, int naddrs)
 {
   struct ifaddrs *ifa;
 
-  if (getifaddrs (&ifa) == 0)
+  if (getifaddrs (&ifa) != 0)
     {
       perror ("broadcast: getifaddrs");
       return 0;