]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Do not set output type if list application failed
authorVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 10 Aug 2023 13:51:42 +0000 (14:51 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Thu, 10 Aug 2023 13:51:42 +0000 (14:51 +0100)
lualib/lua_selectors/init.lua

index 6cdd11584b10d14792ab5fc4385a9a2792d86565..811c5cd50319b4eea588026154fef48cfd54de04 100644 (file)
@@ -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