From 731a2954b73d7f6f23d4d01d6fabc3969de73936 Mon Sep 17 00:00:00 2001 From: eneq123 Date: Thu, 12 Feb 2015 23:18:29 +0300 Subject: [PATCH] fix: attempt to index field '?' (a nil value) --- src/plugins/lua/forged_recipients.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5