Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2005-06-13 02:30:48 UTC

Modified files:
     ircd/match.c ChangeLog

Log message:

Reject strings containing '?' as not being IP masks.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.642 ircu2.10/ChangeLog:1.643
--- ircu2.10/ChangeLog:1.642    Mon May 30 17:26:18 2005
+++ ircu2.10/ChangeLog  Sun Jun 12 19:30:36 2005
@@ -1,3 +1,8 @@
+2005-05-10  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/match.c (check_if_ipmask): Strings that contain '?' cannot
+       be true IP masks.
+
 2005-05-30  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/test/Makefile.in: Add LDFLAGS variable for profiling purposes.
Index: ircu2.10/ircd/match.c
diff -u ircu2.10/ircd/match.c:1.18 ircu2.10/ircd/match.c:1.19
--- ircu2.10/ircd/match.c:1.18  Mon May 30 08:11:38 2005
+++ ircu2.10/ircd/match.c       Sun Jun 12 19:30:36 2005
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Functions to match strings against IRC mask strings.
- * @version $Id: match.c,v 1.18 2005/05/30 15:11:38 entrope Exp $
+ * @version $Id: match.c,v 1.19 2005/06/13 02:30:36 entrope Exp $
  */
 #include "config.h"
 
@@ -881,7 +881,7 @@
   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;
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to