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.6.0~276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6748156cd9294783810305d195a6e1b93cc6d51;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 3d83c251ca..db0e65861d 100644 --- a/src/plugins/lua/dkim_signing.lua +++ b/src/plugins/lua/dkim_signing.lua @@ -83,7 +83,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