]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Avoid `nil` index 1222/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 4 Dec 2016 17:19:59 +0000 (20:19 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 4 Dec 2016 17:19:59 +0000 (20:19 +0300)
src/plugins/lua/settings.lua

index fffa7cfbbaf5d3984b66b9c1d9ba70a4c1689c38..a3a41440a61ed60e429bab1f159097125436ce0e 100644 (file)
@@ -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