diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-05-29 11:17:41 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-05-29 11:17:41 +0200 |
commit | 3360e946cec1582a50227983c623055e0b863e4e (patch) | |
tree | c75a5dc93167c88cb92e3d92abe7d5361ef3dbe3 /src | |
parent | c65ce17f6bde4e2e60c9df092adaa60230ad37e6 (diff) | |
download | rspamd-3360e946cec1582a50227983c623055e0b863e4e.tar.gz rspamd-3360e946cec1582a50227983c623055e0b863e4e.zip |
[Minor] Fix warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/dmarc.lua | 8 |
1 files 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, |