diff --git a/helpers_c/nft46.c b/helpers_c/nft46.c index 1df7c15..fc84aa0 100644 --- a/helpers_c/nft46.c +++ b/helpers_c/nft46.c @@ -38,7 +38,7 @@ int isIPv6(char *tab, int len) { } // Each char must be a digit, :, a-f, or A-F for (i=0; i= 'a' && tab[i] <= 'f') && !(tab[i] >= 'A' && tab[i] <= 'F')) { + if (!isdigit(tab[i]) && tab[i] != ':' && tab[i] != '.' && !(tab[i] >= 'a' && tab[i] <= 'f') && !(tab[i] >= 'A' && tab[i] <= 'F')) { return 0; } }