Skip to content

Commit

Permalink
fix(userspace/engine): make sure exception fields are not optional in…
Browse files Browse the repository at this point in the history
… replace mode

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
  • Loading branch information
jasondellaluce committed Feb 22, 2024
1 parent 4ed11d9 commit fc63582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userspace/engine/rule_loader_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ void rule_loader::reader::read_item(

if (check_update_expected(expected_keys, override_replace, "replace", "exceptions", ctx))
{
read_rule_exceptions(item, v.exceptions, ctx, true);
read_rule_exceptions(item, v.exceptions, ctx, false);
}

if (check_update_expected(expected_keys, override_replace, "replace", "output", ctx))
Expand Down Expand Up @@ -728,7 +728,7 @@ void rule_loader::reader::read_item(
decode_optional_val(item, "warn_evttypes", v.warn_evttypes, ctx);
decode_optional_val(item, "skip-if-unknown-filter", v.skip_if_unknown_filter, ctx);
decode_tags(item, v.tags, ctx);
read_rule_exceptions(item, v.exceptions, ctx, has_append_flag);
read_rule_exceptions(item, v.exceptions, ctx, false);
collector.define(cfg, v);
}
}
Expand Down

0 comments on commit fc63582

Please sign in to comment.