fix bogus return values for inet_pton

This commit is contained in:
Rich Felker 2011-04-21 16:57:00 -04:00
parent 4b5f054098
commit 31f014e0a7

View File

@ -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;
}