From: Vsevolod Stakhov Date: Thu, 10 Aug 2023 13:51:42 +0000 (+0100) Subject: [Fix] Do not set output type if list application failed X-Git-Tag: 3.7.1~81 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d132913b9d0f6387e00834adadb6b5cf35d1ae3;p=thirdparty%2Frspamd.git [Fix] Do not set output type if list application failed --- diff --git a/lualib/lua_selectors/init.lua b/lualib/lua_selectors/init.lua index 6cdd11584b..811c5cd503 100644 --- a/lualib/lua_selectors/init.lua +++ b/lualib/lua_selectors/init.lua @@ -121,7 +121,9 @@ local function process_selector(task, sel) end, fun.map(function(list_elt) local ret, ty = meth.process(list_elt, pt, meth.args) - etype = ty + if ret then + etype = ty + end return ret end, input))) if input and etype then