summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/dmarc.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2016-11-16 10:17:42 +0200
committerAndrew Lewis <nerf@judo.za.org>2016-11-16 10:17:42 +0200
commit03e3d7063308dd169d5b1692ccd28403c16ddd76 (patch)
tree7eca2b3fbfd8538fd13401fabb242e9570a0924b /src/plugins/lua/dmarc.lua
parenta5eef8b08ca4ea69cc3c5bb718102fe24f20a61b (diff)
downloadrspamd-03e3d7063308dd169d5b1692ccd28403c16ddd76.tar.gz
rspamd-03e3d7063308dd169d5b1692ccd28403c16ddd76.zip
[Minor] Small polishes for Lua parts
Diffstat (limited to 'src/plugins/lua/dmarc.lua')
-rw-r--r--src/plugins/lua/dmarc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index cdbc8700e..400882755 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -116,6 +116,7 @@ local function dmarc_callback(task)
local function dmarc_dns_cb(_, to_resolve, results, err)
+ task:inc_dns_req()
local lookup_domain = string.sub(to_resolve, 8)
if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then
task:insert_result(dmarc_symbols['dnsfail'], 1.0, lookup_domain .. ' : ' .. err)