From: Vsevolod Stakhov Date: Mon, 5 Jun 2017 15:23:05 +0000 (+0100) Subject: [Minor] Do not query RBLs with no monitored set X-Git-Tag: 1.6.0~59 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0962f98cac23dfd64d05ae87c2b7ba0df1965b61;p=rspamd.git [Minor] Do not query RBLs with no monitored set --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 5813d0ef1..0f02d5457 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -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