Skip to content

Commit

Permalink
Do not forget rule conditions like syslog_facility, syslog_level etc
Browse files Browse the repository at this point in the history
Fixes beave#141
  • Loading branch information
candlerb committed Oct 25, 2019
1 parent 0b0aea8 commit a2ee7fc
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/rules.c
Original file line number Diff line number Diff line change
Expand Up @@ -2071,9 +2071,6 @@ void Load_Rules( const char *ruleset )
rulestruct[counters->rulecount].s_sid = atol(arg);
}


rulestruct[counters->rulecount].s_tag[0] = '\0';

if (!strcmp(rulesplit, "syslog_tag" ))
{
arg = strtok_r(NULL, ":", &saveptrrule2);
Expand All @@ -2089,9 +2086,6 @@ void Load_Rules( const char *ruleset )
strlcpy(rulestruct[counters->rulecount].s_tag, arg, sizeof(rulestruct[counters->rulecount].s_tag));
}


rulestruct[counters->rulecount].s_facility[0] = '\0';

if (!strcmp(rulesplit, "syslog_facility" ))
{
arg = strtok_r(NULL, ":", &saveptrrule2);
Expand All @@ -2107,8 +2101,6 @@ void Load_Rules( const char *ruleset )
strlcpy(rulestruct[counters->rulecount].s_facility, arg, sizeof(rulestruct[counters->rulecount].s_facility));
}

rulestruct[counters->rulecount].s_level[0] = '\0';

if (!strcmp(rulesplit, "syslog_level" ))
{
arg = strtok_r(NULL, ":", &saveptrrule2);
Expand All @@ -2124,8 +2116,6 @@ void Load_Rules( const char *ruleset )
strlcpy(rulestruct[counters->rulecount].s_level, arg, sizeof(rulestruct[counters->rulecount].s_level));
}

rulestruct[counters->rulecount].s_syspri[0] = '\0';

if (!strcmp(rulesplit, "syslog_priority" ))
{
arg = strtok_r(NULL, ":", &saveptrrule2);
Expand Down

0 comments on commit a2ee7fc

Please sign in to comment.