]> git.ipfire.org Git - thirdparty/suricata.git/commit
detect: allow rule errors to display error, but not be fatal
authorJason Ish <jason.ish@oisf.net>
Tue, 20 Sep 2022 17:48:59 +0000 (11:48 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 20 Sep 2022 17:51:02 +0000 (11:51 -0600)
commit726de4e70c7e7cff714f89d1d00208a162817f4f
tree16feb4abe0b0c4e42f041e33ed60a6c1532a531b
parentf40ad90adf9b13c13435990c49bd00d5fa9824ee
detect: allow rule errors to display error, but not be fatal

Add a new setup return code, -4 which will print the error, but not
error out in test mode. This is to support allowing incomplete hex, as
there is no context as to which rule had the issue.

For context:
- -3: error ok, no message
- -2: error not ok, no message
- -4: error ok, message
src/detect-parse.c