aboutsummaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorDmitriy Alekseev <1865999+dragoangel@users.noreply.github.com>2024-04-19 21:33:44 +0300
committerGitHub <noreply@github.com>2024-04-19 21:33:44 +0300
commitdb03a55444248c4ee3d4e5964c860a5b907a1703 (patch)
treeea0b874703f8fc5f88e8c6ae0c2380b9f4307708 /rules
parentb4b373907440f9703b4408654f490f751e5eb43d (diff)
downloadrspamd-db03a55444248c4ee3d4e5964c860a5b907a1703.tar.gz
rspamd-db03a55444248c4ee3d4e5964c860a5b907a1703.zip
Fix error in headers_checks.lua
Diffstat (limited to 'rules')
-rw-r--r--rules/headers_checks.lua2
1 files changed, 1 insertions, 1 deletions
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