Skip to content

Commit df79bf6

Browse files
authored
Merge pull request #3187 from marcstern/v2/pr/logidptr
Invalid pointer access in case rule id == NOT_SET_P
2 parents 3660184 + 9fb773c commit df79bf6

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)