Commit 29c637e8 authored by Pekka Pessi's avatar Pekka Pessi

bnf.c: fixed bug in IPv6 address canonization

darcs-hash:20070307103408-88462-4f62d6d7e5e274b6a1e2536e8f24bb00455f9770.gz
parent 7aaec131
......@@ -377,7 +377,7 @@ int canonize_ip6_address(char *host, char *hexparts[9])
if (i == maxparts + 1) {
/* There is an extra doublecolon */
for (j = doublecolon; j <= i; j++)
for (j = doublecolon; j + 1 < i; j++)
hexparts[j] = hexparts[j + 1];
i--;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment