mirror of https://github.com/OISF/suricata
detect: fix bug where rule without sid is accepted
Before, if Suricata parsed a rule without a 'sid' option, instead of failing that rule, the rule was parsed and attributed a sid 0. Changes to: detect-parse: - add logic to filter out rules without sid; - change unittest which didn't have a sid, but used to pass. detect-sid: add unittest for rules without sid or with sid: 0pull/6261/head
parent
0eefd90a93
commit
a15fada727
Loading…
Reference in New Issue