]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Do not try to sign unknown domains
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 9 Aug 2017 18:24:08 +0000 (19:24 +0100)
committerJean-Louis Dupond <jean-louis@dupond.be>
Mon, 4 Dec 2017 20:10:10 +0000 (21:10 +0100)
lualib/dkim_sign_tools.lua

index 3a34a56824a9114ee4f0c2d910b0442165aca745..0fd6f5618d8fa54730ae23bf384569d9ab1ec1ab 100644 (file)
@@ -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