diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-05-04 17:16:52 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-05-04 17:16:52 +0200 |
commit | a6748156cd9294783810305d195a6e1b93cc6d51 (patch) | |
tree | 9c767997b2ed99e4d8dba6e91d62333e6b297771 | |
parent | 1b493693160d4e1b1b82924b5e5aebb5ffaa4dcb (diff) | |
download | rspamd-a6748156cd9294783810305d195a6e1b93cc6d51.tar.gz rspamd-a6748156cd9294783810305d195a6e1b93cc6d51.zip |
[Fix] DKIM Signing: avoid nil index when From header is missing
-rw-r--r-- | src/plugins/lua/dkim_signing.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/dkim_signing.lua b/src/plugins/lua/dkim_signing.lua index 3d83c251c..db0e65861 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 |