mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Invalid pointer access in case rule id == NOT_SET_P
This commit is contained in:
parent
28b6e1d7d0
commit
9fb773c1ce
@ -35,7 +35,7 @@ const char* id_log(msre_rule* rule) {
|
||||
assert(rule != NULL);
|
||||
assert(rule->actionset != NULL);
|
||||
const char* id = rule->actionset->id;
|
||||
if (!id || !*id || id == NOT_SET_P) id = apr_psprintf(rule->ruleset->mp, "%s (%d)", rule->filename, rule->line_num);
|
||||
if (!id || id == NOT_SET_P || !*id) id = apr_psprintf(rule->ruleset->mp, "%s (%d)", rule->filename, rule->line_num);
|
||||
return id;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user