From: Andrew Lewis Date: Mon, 13 Mar 2017 12:33:27 +0000 (+0200) Subject: [Minor] Fix tests X-Git-Tag: 1.5.3~41^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=67b7949e35ebe460603aa44e1f15a89c1dbcac45;p=rspamd.git [Minor] Fix tests --- 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