]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Pet luacheck
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Feb 2019 18:06:58 +0000 (18:06 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 Feb 2019 18:06:58 +0000 (18:06 +0000)
lualib/rspamadm/mime.lua

index d615feab317f86a30abfc3c79448649a1239bc5e..16803b8c0906cc05a57bc1f55b3f16878d545a10 100644 (file)
@@ -801,7 +801,7 @@ local function modify_handler(opts)
     end
 
     -- End of headers
-    local eoh_pos = #out
+    --local eoh_pos = #out
     out[#out + 1] = ''
 
     local boundaries = {}
@@ -947,7 +947,8 @@ local function sign_handler(opts)
     local sig = lua_dkim.do_sign(task, ctx, opts.selector, opts.domain)
 
     if not sig then
-
+      io.stderr:write('Cannot create signature\n')
+      os.exit(1)
     end
 
     if opts.output == 'signature' then