From: Vsevolod Stakhov Date: Mon, 11 Feb 2019 18:06:58 +0000 (+0000) Subject: [Minor] Pet luacheck X-Git-Tag: 1.9.0~172 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=469dcecb601d6622ff0f539349fd568c4969ef35;p=rspamd.git [Minor] Pet luacheck --- diff --git a/lualib/rspamadm/mime.lua b/lualib/rspamadm/mime.lua index d615feab3..16803b8c0 100644 --- a/lualib/rspamadm/mime.lua +++ b/lualib/rspamadm/mime.lua @@ -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