mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
fix bogus return values for inet_pton
This commit is contained in:
parent
4b5f054098
commit
31f014e0a7
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue