Skip to content

Commit d329391

Browse files
author
b1v1r
committed
Change scope of state var so multiMatch works once again.
1 parent 68f79e7 commit d329391

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/re.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2049,6 +2049,7 @@ static apr_status_t msre_rule_process_normal(msre_rule *rule, modsec_rec *msr) {
20492049
apr_table_t *normtab;
20502050
const char *lastvarval = NULL;
20512051
apr_size_t lastvarlen = 0;
2052+
int tfnchanged = 0;
20522053

20532054
changed = 0;
20542055
normtab = apr_table_make(mptmp, 10);
@@ -2191,7 +2192,6 @@ static apr_status_t msre_rule_process_normal(msre_rule *rule, modsec_rec *msr) {
21912192
for (; k < tarr->nelts; k++) {
21922193
char *rval = NULL;
21932194
long int rval_length = -1;
2194-
int tfnchanged = 0;
21952195

21962196
/* In multi-match mode we execute the operator
21972197
* once at the beginning and then once every

0 commit comments

Comments
 (0)