commit 6d13291: [Fix] Do not set output type if list application failed
Vsevolod Stakhov
vsevolod at rspamd.com
Thu Aug 10 13:56:04 UTC 2023
Author: Vsevolod Stakhov
Date: 2023-08-10 14:51:42 +0100
URL: https://github.com/rspamd/rspamd/commit/6d132913b9d0f6387e00834adadb6b5cf35d1ae3 (HEAD -> master)
[Fix] Do not set output type if list application failed
---
lualib/lua_selectors/init.lua | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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
More information about the Commits
mailing list