]> git.ipfire.org Git - thirdparty/suricata-update.git/commitdiff
move modify into loop with others and skip format check 218/head
authorcthomas <corey.thomas@gm.com>
Mon, 6 Jan 2020 20:50:16 +0000 (15:50 -0500)
committercthomas <corey.thomas@gm.com>
Mon, 6 Jan 2020 20:50:16 +0000 (15:50 -0500)
suricata/update/main.py

index ff9d2dd3aa10406e20d3287f28c28d2098cf806a..b926ae8b4c1713b7e17a2fd0d6a40d4e7fb15734 100644 (file)
@@ -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