]> source.dussan.org Git - rspamd.git/commitdiff
Do not try to register rbls without a symbol.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Nov 2013 23:13:27 +0000 (23:13 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 26 Nov 2013 23:13:27 +0000 (23:13 +0000)
src/plugins/lua/rbl.lua

index 86dba990062009f9bfb55afcda3067a9987731c6..cb827e8548b493019f07c0b4927199774399cd23 100644 (file)
@@ -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