aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/forged_recipients.lua
diff options
context:
space:
mode:
authoreneq123 <you@example.com>2015-02-12 23:18:29 +0300
committereneq123 <you@example.com>2015-02-12 23:18:29 +0300
commit13ab4cf77a3870c11ff4665c73e48ee34c6b684f (patch)
tree4b6c81b0dafc404ddde2714afe25583bc7bdc924 /src/plugins/lua/forged_recipients.lua
parent8d0d01a78c036741dbfff1ce7fb3ccead772bde8 (diff)
downloadrspamd-13ab4cf77a3870c11ff4665c73e48ee34c6b684f.tar.gz
rspamd-13ab4cf77a3870c11ff4665c73e48ee34c6b684f.zip
fix: attempt to index field '?' (a nil value)
Diffstat (limited to 'src/plugins/lua/forged_recipients.lua')
-rw-r--r--src/plugins/lua/forged_recipients.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/forged_recipients.lua b/src/plugins/lua/forged_recipients.lua
index 44cd6994a..2fea63eae 100644
--- a/src/plugins/lua/forged_recipients.lua
+++ b/src/plugins/lua/forged_recipients.lua
@@ -38,7 +38,7 @@ function check_forged_headers(task)
local smtp_from = task:get_from(1)
if smtp_from then
local mime_from = task:get_from(2)
- if not mime_from or not (string.lower(mime_from[1]['addr']) == string.lower(smtp_from[1]['addr'])) then
+ if not mime_from or not mime_from[1] or not (string.lower(mime_from[1]['addr']) == string.lower(smtp_from[1]['addr'])) then
task:insert_result(symbol_sender, 1)
end
end