aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2015-09-17 17:08:17 +0200
committerAndrew Lewis <nerf@judo.za.org>2015-09-17 17:08:17 +0200
commit36df406d4d22ba92501010dc07f507ad7484afe8 (patch)
treed3343e222ddeacb8b4c1958f6d879f3caa4eff78 /src
parent1cdd82879e007ce1cde16d97feeb84ec2b6cfdd3 (diff)
downloadrspamd-36df406d4d22ba92501010dc07f507ad7484afe8.tar.gz
rspamd-36df406d4d22ba92501010dc07f507ad7484afe8.zip
Fix DKIM RBL
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/rbl.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index 0203e969c..c1ea77ef1 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -176,14 +176,14 @@ local function rbl_cb (task)
end
if not havegot['dkim'] then
local das = task:get_symbol(symbols['dkim_allow_symbol'])
- if das and das[1] and das[1]['options'] and das[1]['options'][0] then
+ if das and das[1] and das[1]['options'] then
havegot['dkim'] = das[1]['options']
else
notgot['dkim'] = true
return
end
end
- for _, d in pairs(havegot['dkim']) do
+ for _, d in ipairs(havegot['dkim']) do
if rbl['dkim_domainonly'] then
local url_from = rspamd_url.create(task:get_mempool(), d)
if url_from then