Fix an error in backtracking (apparently exacerbated by escapes).
authorMichael Poole <mdpoole@troilus.org>
Tue, 18 Nov 2008 02:30:15 +0000 (02:30 +0000)
committerMichael Poole <mdpoole@troilus.org>
Tue, 18 Nov 2008 02:30:15 +0000 (02:30 +0000)
git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1891 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/match.c

index 44dc44fb59c926f32ed09f78c6e27f005c876b8d..229c71d0fef12a63cddde5cd82a8b28e3dd90a29 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-11-17  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/match.c (match): Fix an error in backtracking (apparently
+       exacerbated by escapes).
+
 2008-09-07  Perry Lorier <isomer@undernet.org>
        
        * ircd/m_kill.c: Remove the . from the end of the nickname in kill
index 27edc2660bae5dd2e329f9a4242583ffec01c1ed..b585053c795348900039553fae8c29f037fea525 100644 (file)
@@ -201,6 +201,8 @@ int match(const char *mask, const char *name)
       return 1;
     m = m_tmp;
     n = ++n_tmp;
+    if (*n == '\0')
+      return 1;
     break;
   case '\\':
     m++;