forked from Telodendria/Telodendria
[FIX] Check the number of digits with IPv6(up to 8)
Also fixes a warning (-Wno-unused-but-set-variable).
This commit is contained in:
parent
f815f653b0
commit
3ec713da8b
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ ParseIPv6(char **str, char **out)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
while ((c = Iterate(str)) && IsIPv6Char(c))
|
while ((c = Iterate(str)) && IsIPv6Char(c) && digits < 8)
|
||||||
{
|
{
|
||||||
char *ipv4;
|
char *ipv4;
|
||||||
if (isxdigit(c))
|
if (isxdigit(c))
|
||||||
|
|
Loading…
Reference in a new issue