]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix testing for zero
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 May 2019 16:37:51 +0000 (17:37 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 20 May 2019 16:37:51 +0000 (17:37 +0100)
src/plugins/lua/multimap.lua

index a61c1771298c5ce4415dfd71c1c093119516bb1a..620005b81991d697fc82567bf7d67801279da6b0 100644 (file)
@@ -888,7 +888,7 @@ local function multimap_callback(task, rule)
     end,
     combined = function()
       local ret,trace = rule.combined:process(task)
-      if ret then
+      if ret and ret ~= 0 then
         for n,t in pairs(trace) do
           insert_results(t.value, string.format("%s=%s",
               n, t.matched))