From 7838bab72371367baa909471ccb734426a6955d2 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 26 Nov 2013 23:13:27 +0000 Subject: [PATCH] Do not try to register rbls without a symbol. --- src/plugins/lua/rbl.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 86dba9900..cb827e854 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -149,7 +149,7 @@ for key,rbl in pairs(opts['rbls']) do if not rbl['symbol'] and type(rbl['returncodes']) ~= 'nil' and not rbl['unknown'] then rbl['symbol'] = key end - if type(rspamd_config.get_api_version) ~= 'nil' then + if type(rspamd_config.get_api_version) ~= 'nil' and rbl['symbol'] then rspamd_config:register_virtual_symbol(rbl['symbol'], 1) end rbls[key] = rbl -- 2.39.5