From: Vsevolod Stakhov Date: Tue, 9 Jul 2019 11:26:41 +0000 (+0100) Subject: [Minor] Neural: Another references fix X-Git-Tag: 2.0~622 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bd5e5291ebda01d36236f93fd37d93efc9f83e98;p=rspamd.git [Minor] Neural: Another references fix --- diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index 9ed26dafb..9894ce4df 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -1152,7 +1152,7 @@ local function process_rules_settings() process_settings_elt(rule, nelt) for id,ex in pairs(rule.settings) do if type(ex) == 'table' then - if lua_util.distance_sorted(ex.symbols, nelt.symbols) == 0 then + if nelt and lua_util.distance_sorted(ex.symbols, nelt.symbols) == 0 then -- Equal symbols, add reference lua_util.debugm(N, rspamd_config, 'added reference from settings id %s to %s; same symbols',