$NetBSD: patch-bc,v 1.1 2000/03/20 02:25:42 itojun Exp $ --- match.c.orig Wed May 12 07:19:27 1999 +++ match.c Fri Dec 24 21:50:42 1999 @@ -129,6 +129,11 @@ is_ip_pattern = 0; break; } + for(p = pattern; *p; p++) + if (!(isxdigit(*p) || *p == ':' || *p == '?' || *p == '*')) + break; + if (ip && !*p) + is_ip_pattern = 1; if (is_ip_pattern) { return match_pattern(ip, pattern);