summaryrefslogtreecommitdiffstats
path: root/lualib/lua_selectors
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-10 14:51:42 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-10 14:51:42 +0100
commit6d132913b9d0f6387e00834adadb6b5cf35d1ae3 (patch)
treec822bea668aec845b3711065d64c89680a988b35 /lualib/lua_selectors
parenteddf3cc5506587b1b08c06e486959724a8aafedf (diff)
downloadrspamd-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.lua4
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