about summary refs log tree commit diff
path: root/sunrpc/pmap_clnt.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-28 22:13:11 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-28 22:13:11 +0000
commit21ae57c4135109f3e5478c713463fe4951605fd8 (patch)
treee3bbeb96e59a469a1503c300b9166b32040dbf2e /sunrpc/pmap_clnt.c
parenta19fe332c1be896a4b834b26f8f2ed4813f180f2 (diff)
downloadglibc-21ae57c4135109f3e5478c713463fe4951605fd8.tar.gz
glibc-21ae57c4135109f3e5478c713463fe4951605fd8.tar.xz
glibc-21ae57c4135109f3e5478c713463fe4951605fd8.zip
Update.
	* sunrpc/get_myaddr.c (get_myaddress): Fix test for failing
	getifaddrs call.
	* sunrpc/pmap_clnt.c (__get_myaddress): Likewise.
Diffstat (limited to 'sunrpc/pmap_clnt.c')
-rw-r--r--sunrpc/pmap_clnt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sunrpc/pmap_clnt.c b/sunrpc/pmap_clnt.c
index c968511e96..aa5740c8a0 100644
--- a/sunrpc/pmap_clnt.c
+++ b/sunrpc/pmap_clnt.c
@@ -57,7 +57,7 @@ __get_myaddress (struct sockaddr_in *addr)
 {
   struct ifaddrs *ifa;
 
-  if (getifaddrs (&ifa) == 0)
+  if (getifaddrs (&ifa) != 0)
     {
       perror ("get_myaddress: getifaddrs");
       exit (1);