]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix maps expressions evaluation
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 7 Feb 2020 09:52:19 +0000 (09:52 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 7 Feb 2020 09:52:19 +0000 (09:52 +0000)
Issue: #3256
Submitted by: @rm-minus-rf

lualib/lua_maps_expressions.lua

index bf3215d392c4487845425e90624f68cf4e43ba2c..9535f809df1b99532355c6af72d1f6181a513f37 100644 (file)
@@ -78,7 +78,7 @@ local function process_func(elt, task)
 
   local res = elt.expr:process(process_atom)
 
-  if res then
+  if res > 0 then
     return res,matched
   end