From: Andrew Lewis Date: Thu, 23 Mar 2017 08:28:03 +0000 (+0200) Subject: [Minor] Fix changes to SPOOF_REPLYTO X-Git-Tag: 1.5.4~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab60a0e3fa931d7df2c9a80e711e86c7162042c5;p=thirdparty%2Frspamd.git [Minor] Fix changes to SPOOF_REPLYTO --- diff --git a/rules/misc.lua b/rules/misc.lua index 78acdf9103..e289215c97 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