]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix changes to SPOOF_REPLYTO
authorAndrew Lewis <nerf@judo.za.org>
Thu, 23 Mar 2017 08:28:03 +0000 (10:28 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Thu, 23 Mar 2017 08:28:03 +0000 (10:28 +0200)
rules/misc.lua

index 78acdf91030d38e7c5bbb346db19bf074bb9c8be..e289215c97f3ed9fd66887a518abbdb126ad3274 100644 (file)
@@ -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