]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix use of task:get_symbol
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 13 Mar 2022 15:44:22 +0000 (15:44 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 13 Mar 2022 15:44:22 +0000 (15:44 +0000)
lualib/lua_dkim_tools.lua

index 06ab819f882c75e36e3cc4e79f6e4a01bf0930a4..777789dc6a2a59c4222bcf339ddbbaeeba45776c 100644 (file)
@@ -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