Explorar o código

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.

Rob Landley %!s(int64=18) %!d(string=hai) anos
pai
achega
ab4c9a42ce
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libc/inet/getproto.c

+ 1 - 1
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)