From 9720ca1f032dbe3e3a9124f8d903c1194f1a1987 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Thu, 16 Feb 2006 03:16:19 +0000 Subject: [PATCH] Fix backtracking bug in matching after an escape. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1616 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/match.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 095919e..49fcc26 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-02-15 Michael Poole + + * ircd/match.c (match): Fix backtracking bug after an escape + (reported by Michael, I think). + 2006-02-04 Michael Poole * ircd/ircd.c (try_connections): Scan all Connect blocks for the diff --git a/ircd/match.c b/ircd/match.c index 1715b53..27edc26 100644 --- a/ircd/match.c +++ b/ircd/match.c @@ -206,7 +206,7 @@ int match(const char *mask, const char *name) m++; /* allow escaping to force capitalization */ if (*m++ != *n++) - return 1; + goto backtrack; break; case '*': case '?': for (star_p = 0; ; m++) { -- 2.20.1