diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-05 16:23:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-06-05 16:23:05 +0100 |
commit | 0962f98cac23dfd64d05ae87c2b7ba0df1965b61 (patch) | |
tree | 8fb9a607acd679aba7852aaa23a3ee5ff214ed6c | |
parent | 01da9a41f78436aa2e80f38e9836dc68aacf8c57 (diff) | |
download | rspamd-0962f98cac23dfd64d05ae87c2b7ba0df1965b61.tar.gz rspamd-0962f98cac23dfd64d05ae87c2b7ba0df1965b61.zip |
[Minor] Do not query RBLs with no monitored set
-rw-r--r-- | src/plugins/lua/rbl.lua | 6 |
1 files 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 |