From 3360e946cec1582a50227983c623055e0b863e4e Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Mon, 29 May 2017 11:17:41 +0200 Subject: [PATCH] [Minor] Fix warnings --- src/plugins/lua/dmarc.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua index dca85a735..e3ab0d940 100644 --- a/src/plugins/lua/dmarc.lua +++ b/src/plugins/lua/dmarc.lua @@ -608,7 +608,7 @@ if opts['reporting'] == true then end rspamd_config:add_on_load(function(cfg, ev_base, worker) if not (worker:get_name() == 'normal' and worker:get_index() == 0) then return end - local resolver = rspamd_resolver.init(ev_base, rspamd_config) + local rresolver = rspamd_resolver.init(ev_base, rspamd_config) load_scripts(cfg, ev_base) rspamd_config:register_finish_script(function () local stamp = pool:get_variable(VAR_NAME, 'double') @@ -856,7 +856,7 @@ if opts['reporting'] == true then stop_pattern = '\r\n', host = report_settings.smtp, port = report_settings.smtp_port, - resolver = resolver, + resolver = rresolver, }) end local function make_report() @@ -961,7 +961,7 @@ if opts['reporting'] == true then reporting_addr[test_addr] = true end end - local t, vdom = next(to_verify) + local t, nvdom = next(to_verify) if not t then if next(reporting_addr) then make_report() @@ -970,7 +970,7 @@ if opts['reporting'] == true then delete_reports() end else - verifier(t, vdom) + verifier(t, nvdom) end end rspamd_config:get_resolver():resolve_txt(nil, pool, -- 2.39.5