diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-12-03 21:20:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-03 21:20:43 +0300 |
commit | 5fc30a05fbd7eb93e2318e642fee942e874f60fc (patch) | |
tree | e595fae4f2cae9603b3df3f91d3699c91c4f4c34 /rules | |
parent | 7d599a338d01f9618b50c11a1010a66f7cfc3f92 (diff) | |
download | rspamd-5fc30a05fbd7eb93e2318e642fee942e874f60fc.tar.gz rspamd-5fc30a05fbd7eb93e2318e642fee942e874f60fc.zip |
[Minor] Avoid nil index
Diffstat (limited to 'rules')
-rw-r--r-- | rules/misc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/misc.lua b/rules/misc.lua index 20e4d3ddf..5eeda6af3 100644 --- a/rules/misc.lua +++ b/rules/misc.lua @@ -490,7 +490,7 @@ local check_from_id = rspamd_config:register_callback_symbol('CHECK_FROM', 1.0, then task:insert_result('FROM_EQ_ENVFROM', 1.0) elseif (envfrom and envfrom[1] and envfrom[1].addr) then - task:insert_result('FROM_NEQ_ENVFROM', 1.0, from[1].addr, envfrom[1].addr) + task:insert_result('FROM_NEQ_ENVFROM', 1.0, from and from[1].addr or '', envfrom[1].addr) end local to = task:get_recipients(2) |