mirror of
https://github.com/fluencelabs/musl
synced 2025-05-28 23:21:34 +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;
|
return 0;
|
||||||
s=z+1;
|
s=z+1;
|
||||||
}
|
}
|
||||||
return 0;
|
return 1;
|
||||||
} else if (af==AF_INET6) {
|
} else if (af==AF_INET6) {
|
||||||
return !__ipparse(a, AF_INET6, s);
|
return !__ipparse(a, AF_INET6, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
errno = EAFNOSUPPORT;
|
errno = EAFNOSUPPORT;
|
||||||
return 0;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user