Skip to content

Commit 9fb773c

Browse files
author
Marc Stern
committed
Invalid pointer access in case rule id == NOT_SET_P
1 parent 28b6e1d commit 9fb773c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apache2/apache2_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const char* id_log(msre_rule* rule) {
3535
assert(rule != NULL);
3636
assert(rule->actionset != NULL);
3737
const char* id = rule->actionset->id;
38-
if (!id || !*id || id == NOT_SET_P) id = apr_psprintf(rule->ruleset->mp, "%s (%d)", rule->filename, rule->line_num);
38+
if (!id || id == NOT_SET_P || !*id) id = apr_psprintf(rule->ruleset->mp, "%s (%d)", rule->filename, rule->line_num);
3939
return id;
4040
}
4141

0 commit comments

Comments
 (0)