From a322aa5b01bd87d6538ec7071bc90107ff340efa Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Tue, 18 Nov 2008 02:30:15 +0000 Subject: [PATCH] Fix an error in backtracking (apparently exacerbated by escapes). git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/branches/u2_10_12_branch@1891 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/match.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 44dc44f..229c71d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-11-17 Michael Poole + + * ircd/match.c (match): Fix an error in backtracking (apparently + exacerbated by escapes). + 2008-09-07 Perry Lorier * ircd/m_kill.c: Remove the . from the end of the nickname in kill diff --git a/ircd/match.c b/ircd/match.c index 27edc26..b585053 100644 --- a/ircd/match.c +++ b/ircd/match.c @@ -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++; -- 2.20.1