diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-15 14:52:48 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-15 14:52:48 +0000 |
commit | 6296a24a75b00bd04d16031d6b09080baa7c56c1 (patch) | |
tree | b40b367918fda18d19045cc1c4bde9bf313f8b7d /rules | |
parent | 22a0948a357a7cc7dc9fd393eac686b743791626 (diff) | |
download | rspamd-6296a24a75b00bd04d16031d6b09080baa7c56c1.tar.gz rspamd-6296a24a75b00bd04d16031d6b09080baa7c56c1.zip |
[Rules] Fix the case when there are no received headers
Diffstat (limited to 'rules')
-rw-r--r-- | rules/misc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index f6d1c81b9..26f2a1357 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -198,7 +198,7 @@ local check_rcvd = rspamd_config:register_symbol{ group = 'headers', callback = function (task) local rcvds = task:get_received_headers() - if not rcvds then return false end + if not rcvds or #rcvds == 0 then return false end local all_tls = fun.all(function(rc) return rc.flags and rc.flags['ssl'] |