]> git.ipfire.org Git - thirdparty/suricata.git/commit
output/lua: better lua output setup error handling 3272/head
authorRichard Sailer <richard_siegfried@systemli.org>
Thu, 22 Feb 2018 00:53:16 +0000 (01:53 +0100)
committerVictor Julien <victor@inliniac.net>
Wed, 7 Mar 2018 08:23:04 +0000 (09:23 +0100)
commit748fda196667416b2f6caf2289df910618c262ca
tree8038bad27f3c993d56def290ac3ef47a36ac4f8d
parent7910b6689e80a1b2ad43b611807ecaf32a6d05be
output/lua: better lua output setup error handling

If suricata was started with --init-errors-fatal and an error occured
during setup of lua output (like if lua scripts configured in the conf file
don't exist or are not readable) suricata continued, which did not reflect
"init errors fatal" very well.

This fix makes the suricata initialization abort and send an error message
in such cases.

For details see:
https://redmine.openinfosecfoundation.org/issues/1503
src/output-lua.c