From: Fredrik Tolf Date: Sun, 11 Aug 2013 21:36:42 +0000 (+0200) Subject: patplex: Fixed regex compilation bug. X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=7026d1878e72d10882ef76f74b2164df846c3705 patplex: Fixed regex compilation bug. --- diff --git a/src/patplex.c b/src/patplex.c index 23fcf4e..692d480 100644 --- a/src/patplex.c +++ b/src/patplex.c @@ -189,6 +189,7 @@ static struct pattern *parsepattern(struct cfstate *s) flog(LOG_WARNING, "%s:%i: missing pattern for `%s' match", s->file, s->lno, s->argv[0]); continue; } + rxfl = 0; if(s->argc >= 3) { if(strchr(s->argv[2], 'i')) rxfl |= REG_ICASE; @@ -216,6 +217,7 @@ static struct pattern *parsepattern(struct cfstate *s) flog(LOG_WARNING, "%s:%i: missing header name or pattern for `header' match", s->file, s->lno); continue; } + rxfl = 0; if(s->argc >= 4) { if(strchr(s->argv[3], 'i')) rxfl |= REG_ICASE;