aboutsummaryrefslogtreecommitdiff
path: root/sunrpc/get_myaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sunrpc/get_myaddr.c')
-rw-r--r--sunrpc/get_myaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/get_myaddr.c b/sunrpc/get_myaddr.c
index ee82297..c0beee9 100644
--- a/sunrpc/get_myaddr.c
+++ b/sunrpc/get_myaddr.c
@@ -63,7 +63,7 @@ get_myaddress (struct sockaddr_in *addr)
{
struct ifaddrs *ifa;
- if (getifaddrs (&ifa) == 0)
+ if (getifaddrs (&ifa) != 0)
{
perror ("get_myaddress: getifaddrs");
exit (1);