mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Oops, too fast to blame apr :) This bug was a forgotten NULL in the apr_pstrcat function. Apparently newer APRs can handle this.
This commit is contained in:
parent
dc71842cee
commit
e0e031d163
@ -1295,9 +1295,7 @@ static int execute_operator(msre_var *var, msre_rule *rule, modsec_rec *msr,
|
||||
var->name, var->param);
|
||||
}
|
||||
else if ((var->name != NULL) && var->is_counting && (*var->name != '&')) {
|
||||
// TODO: This fails (sigsegv) on FC4, but apr_psprintf works
|
||||
//full_varname = apr_pstrcat(mptmp, "&", var->name);
|
||||
full_varname = apr_psprintf(mptmp, "&%s", var->name);
|
||||
full_varname = apr_pstrcat(mptmp, "&", var->name, NULL);
|
||||
}
|
||||
else {
|
||||
full_varname = var->name;
|
||||
|
Loading…
x
Reference in New Issue
Block a user