From 0962f98cac23dfd64d05ae87c2b7ba0df1965b61 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 5 Jun 2017 16:23:05 +0100 Subject: [PATCH] [Minor] Do not query RBLs with no monitored set --- src/plugins/lua/rbl.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.5