]> source.dussan.org Git - rspamd.git/commitdiff
Fix DKIM RBL 370/head
authorAndrew Lewis <nerf@judo.za.org>
Thu, 17 Sep 2015 15:08:17 +0000 (17:08 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 17 Sep 2015 15:08:17 +0000 (17:08 +0200)
src/plugins/lua/rbl.lua

index 0203e969ce6afd6dd1d32c69491e441d537d6e94..c1ea77ef168c052881173c2fad4d9e0e96d60fad 100644 (file)
@@ -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