commit 708b461: [Minor] Fix use of task:get_symbol
Vsevolod Stakhov
vsevolod at highsecure.ru
Sun Mar 13 15:56:04 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-03-13 15:44:22 +0000
URL: https://github.com/rspamd/rspamd/commit/708b461cc825778d68da39653d6180d15a978d45
[Minor] Fix use of task:get_symbol
---
lualib/lua_dkim_tools.lua | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
More information about the Commits
mailing list