Reject strings containing '?' as not being IP masks.
authorMichael Poole <mdpoole@troilus.org>
Mon, 13 Jun 2005 02:30:36 +0000 (02:30 +0000)
committerMichael Poole <mdpoole@troilus.org>
Mon, 13 Jun 2005 02:30:36 +0000 (02:30 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1421 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/match.c

index ff5a1814b16d077d1622cc8d07ebda76d9912d63..a5c03f0749084378097d26630205d80e719f7f7f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-10  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/match.c (check_if_ipmask): Strings that contain '?' cannot
+       be true IP masks.
+
 2005-05-30  Michael Poole <mdpoole@troilus.org>
 
        * ircd/test/Makefile.in: Add LDFLAGS variable for profiling purposes.
index 530201871d96d9e3f0c3e1750d70ab93e81f6b81..68f57d1f130a92fa020c2bfdc0f8165b2c369f12 100644 (file)
@@ -881,7 +881,7 @@ int check_if_ipmask(const char *mask)
   if (mask[0] == '.' || mask[0] == '/')
     return 0;
   for (p = mask; *p; ++p)
-    if (*p != '*' && *p != '?' && *p != '.' && *p != '/')
+    if (*p != '*' && *p != '.' && *p != '/')
     {
       if (!IsDigit(*p))
         return 0;