From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Fri, 19 Apr 2024 18:33:44 +0000 (+0300) Subject: Fix error in headers_checks.lua X-Git-Tag: 3.9.0~61^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4934%2Fhead;p=rspamd.git Fix error in headers_checks.lua --- diff --git a/rules/headers_checks.lua b/rules/headers_checks.lua index 9a716288b..905c8db62 100644 --- a/rules/headers_checks.lua +++ b/rules/headers_checks.lua @@ -254,7 +254,7 @@ local check_replyto_id = rspamd_config:register_symbol({ then task:insert_result('REPLYTO_EQ_TO_ADDR', 1.0) end - elseif to[1].domain and rt[1].domain then + elseif (to and to[1] and to[1].domain and rt[1].domain) then if (util.strequal_caseless(to[1].domain, rt[1].domain)) then task:insert_result('REPLYTO_DOM_EQ_TO_DOM', 1.0) else