From: Victor Julien Date: Sat, 1 Jun 2024 14:11:10 +0000 (+0200) Subject: output/lua: handle registration error X-Git-Tag: suricata-7.0.6~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a7f083f3c31f6aeed2092279d892a10dde96fa1;p=thirdparty%2Fsuricata.git output/lua: handle registration error Use error message instead of info message. (cherry picked from commit 621fe38dbfe64e834557a6374144dce8bbf89630) --- diff --git a/src/output-lua.c b/src/output-lua.c index cc93a2de4a..d2b708d975 100644 --- a/src/output-lua.c +++ b/src/output-lua.c @@ -502,8 +502,10 @@ static int LuaScriptInit(const char *filename, LogLuaScriptOptions *options) { options->tcp_data = 1; else if (strcmp(k, "type") == 0 && strcmp(v, "stats") == 0) options->stats = 1; - else - SCLogInfo("unknown key and/or value: k='%s', v='%s'", k, v); + else { + SCLogError("unknown key and/or value: k='%s', v='%s'", k, v); + goto error; + } } if (((options->alproto != ALPROTO_UNKNOWN)) + options->packet + options->file > 1) {