From: Rich Felker Date: Thu, 21 Apr 2011 20:57:00 +0000 (-0400) Subject: fix bogus return values for inet_pton X-Git-Tag: v0.7.9~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=31f014e0a751d2bb9d40a09fe2cd1a8b0111acf6;p=oweals%2Fmusl.git fix bogus return values for inet_pton --- diff --git a/src/network/inet_pton.c b/src/network/inet_pton.c index 349c4025..b7f4834f 100644 --- a/src/network/inet_pton.c +++ b/src/network/inet_pton.c @@ -21,11 +21,11 @@ int inet_pton(int af, const char *s, void *a0) return 0; s=z+1; } - return 0; + return 1; } else if (af==AF_INET6) { return !__ipparse(a, AF_INET6, s); } errno = EAFNOSUPPORT; - return 0; + return -1; }