From: Rich Felker Date: Mon, 25 Apr 2011 21:49:21 +0000 (-0400) Subject: fix bug in ipv6 parsing that prevented parsing a lone "::" X-Git-Tag: v0.7.10~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3486365e952292987d84313cc7b84a42238ec83f;p=oweals%2Fmusl.git fix bug in ipv6 parsing that prevented parsing a lone "::" --- diff --git a/src/network/inet_pton.c b/src/network/inet_pton.c index 5affb08d..bb16fb90 100644 --- a/src/network/inet_pton.c +++ b/src/network/inet_pton.c @@ -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) {