mirror of
git://git.musl-libc.org/musl
synced 2024-12-18 21:05:13 +00:00
fix bogus return values for inet_pton
This commit is contained in:
parent
4b5f054098
commit
31f014e0a7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user