From 621fe38dbfe64e834557a6374144dce8bbf89630 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 1 Jun 2024 16:11:10 +0200 Subject: [PATCH] output/lua: handle registration error Use error message instead of info message. --- src/output-lua.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/output-lua.c b/src/output-lua.c index 8e42043e36..4cd1f59244 100644 --- a/src/output-lua.c +++ b/src/output-lua.c @@ -499,8 +499,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) { -- 2.47.2