Add the file/line to the rule so we can use it in the debug log and eventually in the alerts.

This commit is contained in:
brectanus
2007-03-21 21:20:35 +00:00
parent 58afede3f3
commit 4676132ed4
4 changed files with 24 additions and 4 deletions

View File

@@ -422,7 +422,7 @@ static const char *add_rule(cmd_parms *cmd, directory_config *dcfg, const char *
}
/* Create the rule now. */
rule = msre_rule_create(dcfg->ruleset, p1, p2, p3, &my_error_msg);
rule = msre_rule_create(dcfg->ruleset, cmd->directive->filename, cmd->directive->line_num, p1, p2, p3, &my_error_msg);
if (rule == NULL) {
return my_error_msg;
}