]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] DKIM Signing: avoid nil index when From header is missing
authorAndrew Lewis <nerf@judo.za.org>
Thu, 4 May 2017 15:16:52 +0000 (17:16 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 4 May 2017 15:16:52 +0000 (17:16 +0200)
src/plugins/lua/dkim_signing.lua

index 3d83c251cad7b7778de9dcb24ecb69dd15bab065..db0e65861da2211ef5e830c6f89bea9d0727ca2b 100644 (file)
@@ -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