aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_maps_expressions.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-07 09:52:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-02-07 09:52:19 +0000
commit27c0e172a5ffb1552cc6db72a0dfcc0932718347 (patch)
treed9fd0ed0011029c169b3527a76931ca13c379973 /lualib/lua_maps_expressions.lua
parentd3f27d27420984b876bb36bbcc966613af3c8701 (diff)
downloadrspamd-27c0e172a5ffb1552cc6db72a0dfcc0932718347.tar.gz
rspamd-27c0e172a5ffb1552cc6db72a0dfcc0932718347.zip
[Fix] Fix maps expressions evaluation
Issue: #3256 Submitted by: @rm-minus-rf
Diffstat (limited to 'lualib/lua_maps_expressions.lua')
-rw-r--r--lualib/lua_maps_expressions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_maps_expressions.lua b/lualib/lua_maps_expressions.lua
index bf3215d39..9535f809d 100644
--- a/lualib/lua_maps_expressions.lua
+++ b/lualib/lua_maps_expressions.lua
@@ -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