mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-11 00:48:35 +03:00
fix bug in ipv6 parsing that prevented parsing a lone "::"
This commit is contained in:
parent
34d81974d3
commit
3486365e95
@ -36,10 +36,7 @@ int inet_pton(int af, const char *s, void *a0)
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (s[0]==':' && s[1]==':') {
|
||||
s+=2;
|
||||
brk=0;
|
||||
}
|
||||
if (s[0]==':' && s[1]==':') s++;
|
||||
|
||||
for (i=0; ; i++, s+=j+1) {
|
||||
if (s[0]==':' && brk<0) {
|
||||
|
Loading…
Reference in New Issue
Block a user