re_operators.c: removed invalid check (done correctly on line 1067)

copy_rules(): only one return code => void
This commit is contained in:
Marc Stern
2024-08-07 09:42:40 +02:00
parent cb11716af7
commit 8dd5d5f46b
2 changed files with 2 additions and 12 deletions

View File

@@ -1037,10 +1037,6 @@ static int msre_op_rx_execute(modsec_rec *msr, msre_rule *rule, msre_var *var, c
assert(var != NULL);
assert(error_msg != NULL);
msc_regex_t *regex = (msc_regex_t *)rule->op_param_data;
if (!regex) {
msr_log(msr, 1, "rx: Memory allocation error");
return -1;
}
msc_string *re_pattern = (msc_string *)apr_pcalloc(msr->mp, sizeof(msc_string));
if (!re_pattern) {
msr_log(msr, 1, "rx: Memory allocation error");