summaryrefslogtreecommitdiff
path: root/libc/inet
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-04-18 16:26:16 +0000
committerRob Landley <rob@landley.net>2007-04-18 16:26:16 +0000
commitab4c9a42cedb04a9968751558c769f43fac2dea7 (patch)
tree251aa93a7b0cccfb01b740af7b213e55001b3a27 /libc/inet
parent63f197200999f71193f5a57be8be0e289cd7dde1 (diff)
Bugfix from Atsushi Nemoto: return nonzero error code on failure
(without which busybox ping segfaults on error). Broken during locking changes in in svn 16801.
Diffstat (limited to 'libc/inet')
-rw-r--r--libc/inet/getproto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/inet/getproto.c b/libc/inet/getproto.c
index 7800eecb4..c1292ed30 100644
--- a/libc/inet/getproto.c
+++ b/libc/inet/getproto.c
@@ -195,7 +195,7 @@ again:
rv = 0;
DONE:
__UCLIBC_MUTEX_UNLOCK(mylock);
- return 0;
+ return rv;
}
libc_hidden_def(getprotoent_r)