From: Andrew Lewis Date: Thu, 4 May 2017 15:16:52 +0000 (+0200) Subject: [Fix] DKIM Signing: avoid nil index when From header is missing X-Git-Tag: 1.5.8~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed8b4c33768e14e1328d2e3931d51101fc7aae09;p=thirdparty%2Frspamd.git [Fix] DKIM Signing: avoid nil index when From header is missing --- diff --git a/src/plugins/lua/dkim_signing.lua b/src/plugins/lua/dkim_signing.lua index 4843146a71..974f227873 100644 --- a/src/plugins/lua/dkim_signing.lua +++ b/src/plugins/lua/dkim_signing.lua @@ -79,7 +79,7 @@ local function dkim_signing_cb(task) return false end local hfrom = task:get_from('mime') - if not settings.allow_hdrfrom_multiple and hfrom[2] then + if not settings.allow_hdrfrom_multiple and (hfrom or E)[2] then rspamd_logger.debugm(N, task, 'multiple header from not allowed') return false end