OSDN Git Service

Bugfix from Atsushi Nemoto: return nonzero error code on failure
authorRob Landley <rob@landley.net>
Wed, 18 Apr 2007 16:26:16 +0000 (16:26 -0000)
committerRob Landley <rob@landley.net>
Wed, 18 Apr 2007 16:26:16 +0000 (16:26 -0000)
(without which busybox ping segfaults on error).  Broken during locking
changes in in svn 16801.

libc/inet/getproto.c

index 7800eec..c1292ed 100644 (file)
@@ -195,7 +195,7 @@ again:
     rv = 0;
 DONE:
     __UCLIBC_MUTEX_UNLOCK(mylock);
-    return 0;
+    return rv;
 }
 libc_hidden_def(getprotoent_r)