diff options
Diffstat (limited to 'lib/libc/net/getproto.c')
-rw-r--r-- | lib/libc/net/getproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/getproto.c b/lib/libc/net/getproto.c index cb3a3ed..b923edf 100644 --- a/lib/libc/net/getproto.c +++ b/lib/libc/net/getproto.c @@ -123,7 +123,7 @@ getprotobynumber_r(int proto, struct protoent *pptr, char *buffer, if (rv != NS_SUCCESS) { errno = ret_errno; - return ((ret_errno != 0) ? ret_errno : -1); + return (ret_errno); } return (0); } |