]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Do not query RBLs with no monitored set
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Jun 2017 15:23:05 +0000 (16:23 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 5 Jun 2017 15:23:05 +0000 (16:23 +0100)
src/plugins/lua/rbl.lua

index 5813d0ef1e340105066cfa1d6f7e787a7e0aea5e..0f02d54575a5f522681d6e61223dc91f206c8856 100644 (file)
@@ -163,8 +163,10 @@ local function rbl_cb (task)
   local notgot = {}
 
   local alive_rbls = fun.filter(function(_, rbl)
-    if not rbl.monitored:alive() then
-      return false
+    if rbl.monitored then
+      if not rbl.monitored:alive() then
+        return false
+      end
     end
 
     return true