From: Alexander Moisseev Date: Sun, 4 Dec 2016 17:19:59 +0000 (+0300) Subject: [Minor] Avoid `nil` index X-Git-Tag: 1.4.2~9^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1222%2Fhead;p=rspamd.git [Minor] Avoid `nil` index --- diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index fffa7cfbb..a3a41440a 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -102,7 +102,7 @@ local function check_settings(task) return true end end - if rule['domain'] then + if rule['domain'] and elt['domain'] then if rule['domain']:lower() == elt['domain']:lower() then return true end