瀏覽代碼

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 18 年之前
父節點
當前提交
ab4c9a42ce
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)