aboutsummaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-09 19:24:08 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-08-09 19:24:08 +0100
commit239e0b2e3f1e3524915098674f6187cd8dfbdf41 (patch)
treefbe92d94c479f3d9b35e14ddfeaa219c465f4acc /lualib
parent2bf9da4b4d9a6658a9eb01d52a372caf50442521 (diff)
downloadrspamd-239e0b2e3f1e3524915098674f6187cd8dfbdf41.tar.gz
rspamd-239e0b2e3f1e3524915098674f6187cd8dfbdf41.zip
[Fix] Do not try to sign unknown domains
Diffstat (limited to 'lualib')
-rw-r--r--lualib/dkim_sign_tools.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lualib/dkim_sign_tools.lua b/lualib/dkim_sign_tools.lua
index 3a34a5682..0fd6f5618 100644
--- a/lualib/dkim_sign_tools.lua
+++ b/lualib/dkim_sign_tools.lua
@@ -178,6 +178,8 @@ local function prepare_dkim_signing(N, task, settings)
local data = settings.path_map:get_key(dkim_domain)
if data then
p.key = data
+ else
+ return false,{}
end
end