Skip to content

Commit 931f8b6

Browse files
author
Marc Stern
authored
Update re_operators.c
1 parent 9c0d05f commit 931f8b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apache2/re_operators.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,6 @@ static int msre_op_validateHash_execute(modsec_rec *msr, msre_rule *rule, msre_v
751751
char *my_error_msg = NULL;
752752
int ovector[33];
753753
int rc;
754-
const char *pattern = NULL;
755754
#ifdef WITH_PCRE_STUDY
756755
#ifdef WITH_PCRE_JIT
757756
int jit;
@@ -781,8 +780,8 @@ static int msre_op_validateHash_execute(modsec_rec *msr, msre_rule *rule, msre_v
781780

782781
expand_macros(msr, re_pattern, rule, msr->mp);
783782

784-
pattern = log_escape_re(msr->mp, re_pattern->value);
785783
if (msr->txcfg->debuglog_level >= 6) {
784+
const char *pattern = log_escape_re(msr->mp, re_pattern->value);
786785
msr_log(msr, 6, "Escaping pattern [%s]",pattern);
787786
}
788787

0 commit comments

Comments
 (0)