diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-10 14:51:42 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-10 14:51:42 +0100 |
commit | 6d132913b9d0f6387e00834adadb6b5cf35d1ae3 (patch) | |
tree | c822bea668aec845b3711065d64c89680a988b35 /lualib/lua_selectors | |
parent | eddf3cc5506587b1b08c06e486959724a8aafedf (diff) | |
download | rspamd-6d132913b9d0f6387e00834adadb6b5cf35d1ae3.tar.gz rspamd-6d132913b9d0f6387e00834adadb6b5cf35d1ae3.zip |
[Fix] Do not set output type if list application failed
Diffstat (limited to 'lualib/lua_selectors')
-rw-r--r-- | lualib/lua_selectors/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lualib/lua_selectors/init.lua b/lualib/lua_selectors/init.lua index 6cdd11584..811c5cd50 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 |