X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=src%2Fpatplex.c;h=692d48021380a1c73105699a1e6e03583d6d722b;hb=8f410ce7bbc467c7c40c92df6b5f22e8a9ee1de8;hp=23fcf4eadb4738815b44145571268a3b91727c72;hpb=4dc7f716a7b4be064ecf86f6e1444b7b39dfdfe7;p=ashd.git 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;