]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix DNSBL maps
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Jul 2016 14:20:00 +0000 (15:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 28 Jul 2016 14:20:00 +0000 (15:20 +0100)
src/plugins/lua/multimap.lua

index d4fcee6e49cdbbe8c9bfe253de1113f7e16cce83..5b24c2f77b4a1faff39e34eaa0ab8a227e538f01 100644 (file)
@@ -356,10 +356,10 @@ local function multimap_callback(task, rule)
       else
         local cb = function (resolver, to_resolve, results, err, rbl)
           if results then
-            task:insert_result(rule['symbol'], 1, r['map'])
+            task:insert_result(rule['symbol'], 1, rule['map'])
 
             if pre_filter then
-              task:set_pre_result(r['action'], 'Matched map: ' .. r['symbol'])
+              task:set_pre_result(rule['action'], 'Matched map: ' .. rule['symbol'])
             end
           end
         end
@@ -371,7 +371,7 @@ local function multimap_callback(task, rule)
       end
     end
   elseif rt == 'header' then
-    local hv = task:get_header_full(r['header'])
+    local hv = task:get_header_full(rule['header'])
     match_list(rule, hv, {'decoded'})
   elseif rt == 'rcpt' then
     if task:has_recipients('smtp') then