aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-03-13 14:33:27 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-03-13 14:33:27 +0200
commit67b7949e35ebe460603aa44e1f15a89c1dbcac45 (patch)
treeb76b8f41cd25e0dc34f57b44ea103a0b4e92679d /src/plugins
parent53fe13d3d83148c069055214b8f1d14322a63e88 (diff)
downloadrspamd-67b7949e35ebe460603aa44e1f15a89c1dbcac45.tar.gz
rspamd-67b7949e35ebe460603aa44e1f15a89c1dbcac45.zip
[Minor] Fix tests
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/whitelist.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua
index f8c5b1b9b..7b6a4c7ba 100644
--- a/src/plugins/lua/whitelist.lua
+++ b/src/plugins/lua/whitelist.lua
@@ -46,11 +46,13 @@ local function whitelist_cb(symbol, rule, task)
return true,mult
end
elseif rule['maps'] then
- for map, mult in pairs(rule['maps']) do
+ for map, mmult in pairs(rule['maps']) do
local val = map:get_key(dom)
if val then
if #val > 0 then
mult = tonumber(val)
+ else
+ mult = mmult
end
table.insert(domains, dom)
return true,mult