From 70cd35358874f3e920c2267360359af76bc63f1d Mon Sep 17 00:00:00 2001 From: cthomas Date: Mon, 6 Jan 2020 15:50:16 -0500 Subject: [PATCH] move modify into loop with others and skip format check --- suricata/update/main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/suricata/update/main.py b/suricata/update/main.py index ff9d2dd..b926ae8 100644 --- a/suricata/update/main.py +++ b/suricata/update/main.py @@ -1063,12 +1063,10 @@ def _main(): rulemap[rule.id] = fltr.run(rule) drop_count += 1 - # Apply modify filters. - for fltr in modify_filters: - for key, rule in rulemap.items(): + for fltr in modify_filters: if fltr.match(rule): new_rule = fltr.run(rule) - if new_rule and new_rule.format() != rule.format(): + if new_rule: rulemap[rule.id] = new_rule modify_count += 1 -- 2.47.3