diff --git a/lib/command.c b/lib/command.c index 4d95e924d7..64563b5d02 100644 --- a/lib/command.c +++ b/lib/command.c @@ -954,7 +954,12 @@ cmd_ipv6_prefix_match (const char *str) if (*(str + 1) == ':') state = STATE_COLON; else if (*(str + 1) == '.') - state = STATE_DOT; + { + if (colons || double_colon) + state = STATE_DOT; + else + return no_match; + } else if (*(str + 1) == '/') state = STATE_SLASH; }