aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2022-03-13 15:44:22 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2022-03-13 15:44:22 +0000
commit708b461cc825778d68da39653d6180d15a978d45 (patch)
treed5542707ee0c9bcf20983cb7d7ee9c050fc09316
parent95f49b26e96bed72ae811ad7201e12c56d5846f8 (diff)
downloadrspamd-708b461cc825778d68da39653d6180d15a978d45.tar.gz
rspamd-708b461cc825778d68da39653d6180d15a978d45.zip
[Minor] Fix use of task:get_symbol
-rw-r--r--lualib/lua_dkim_tools.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua
index 06ab819f8..777789dc6 100644
--- a/lualib/lua_dkim_tools.lua
+++ b/lualib/lua_dkim_tools.lua
@@ -29,7 +29,7 @@ local function check_violation(N, task, domain)
if N == 'arc' then sym_check = 'ARC_REJECT' end
if task:has_symbol(sym_check) then
- local sym = task:get_symbol(sym_check)
+ local sym = task:get_symbol(sym_check)[1]
logger.infox(task, 'skip signing for %s: violation %s found: %s',
domain, sym_check, sym.options)
return false