diff options
author | Andrew Lewis <nerf@judo.za.org> | 2017-03-23 10:28:03 +0200 |
---|---|---|
committer | Andrew Lewis <nerf@judo.za.org> | 2017-03-23 10:28:03 +0200 |
commit | ab60a0e3fa931d7df2c9a80e711e86c7162042c5 (patch) | |
tree | 7eff717465ce87bba20def9d2bb46c89a58ab8f3 /rules/misc.lua | |
parent | 2198052a5516cb5f8e27cfd16c3dc87271c184ee (diff) | |
download | rspamd-ab60a0e3fa931d7df2c9a80e711e86c7162042c5.tar.gz rspamd-ab60a0e3fa931d7df2c9a80e711e86c7162042c5.zip |
[Minor] Fix changes to SPOOF_REPLYTO
Diffstat (limited to 'rules/misc.lua')
-rw-r--r-- | rules/misc.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 78acdf910..e289215c9 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -442,6 +442,7 @@ rspamd_config.SPOOF_REPLYTO = { if not fromdom then return false end -- SMTP recipients must contain From domain local to = task:get_recipients(1) + if not to then return false end local found_fromdom = false for _, t in ipairs(to) do if util.strequal_caseless(t.domain, fromdom) then |