From ed8b4c33768e14e1328d2e3931d51101fc7aae09 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 4 May 2017 17:16:52 +0200 Subject: [PATCH] [Fix] DKIM Signing: avoid nil index when From header is missing --- src/plugins/lua/dkim_signing.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/dkim_signing.lua b/src/plugins/lua/dkim_signing.lua index 4843146a7..974f22787 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 -- 2.39.5