Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-02-16 03:16:30 UTC

Modified files:
  Tag: u2_10_12_branch
     ChangeLog ircd/match.c

Log message:

Fix backtracking bug in matching after an escape.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.66 ircu2.10/ChangeLog:1.710.2.67
--- ircu2.10/ChangeLog:1.710.2.66       Sat Feb  4 16:52:15 2006
+++ ircu2.10/ChangeLog  Wed Feb 15 19:16:19 2006
@@ -1,3 +1,8 @@
+2006-02-15  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/match.c (match): Fix backtracking bug after an escape
+       (reported by Michael, I think).
+
 2006-02-04  Michael Poole <[EMAIL PROTECTED]>
 
        * ircd/ircd.c (try_connections): Scan all Connect blocks for the
Index: ircu2.10/ircd/match.c
diff -u ircu2.10/ircd/match.c:1.20 ircu2.10/ircd/match.c:1.20.2.1
--- ircu2.10/ircd/match.c:1.20  Sun Sep 11 20:40:17 2005
+++ ircu2.10/ircd/match.c       Wed Feb 15 19:16:19 2006
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Functions to match strings against IRC mask strings.
- * @version $Id: match.c,v 1.20 2005/09/12 03:40:17 entrope Exp $
+ * @version $Id: match.c,v 1.20.2.1 2006/02/16 03:16:19 entrope Exp $
  */
 #include "config.h"
 
@@ -206,7 +206,7 @@
     m++;
     /* allow escaping to force capitalization */
     if (*m++ != *n++)
-      return 1;
+      goto backtrack;
     break;
   case '*': case '?':
     for (star_p = 0; ; m++) {
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to