]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Params should be treated as a hash
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Aug 2016 17:28:12 +0000 (18:28 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 29 Aug 2016 17:28:12 +0000 (18:28 +0100)
src/plugins/lua/rbl.lua

index c3fd2a07c47a0fb5e4b16ae0c7618fac9e027821..b332158bd4e6dd905ca6d075dbcc91933f859c2f 100644 (file)
@@ -349,7 +349,7 @@ local function rbl_cb (task)
   end, enabled_rbls))
 
   local r = task:get_resolver()
-  for _,p in ipairs(params) do
+  for _,p in pairs(params) do
     r:resolve_a({
       task = task,
       p.to_resolve,