summaryrefslogtreecommitdiff
path: root/security/ssh/patches/patch-bc
blob: ef35ff003dfb131de5e9a923bef7e4b5a946c513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-bc,v 1.1 1999/12/25 05:28:37 kim 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);