From: Vsevolod Stakhov Date: Tue, 26 Nov 2013 23:13:27 +0000 (+0000) Subject: Do not try to register rbls without a symbol. X-Git-Tag: 0.6.0~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7838bab72371367baa909471ccb734426a6955d2;p=rspamd.git Do not try to register rbls without a symbol. --- 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