]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Neural: Another references fix
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 9 Jul 2019 11:26:41 +0000 (12:26 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 9 Jul 2019 11:26:41 +0000 (12:26 +0100)
src/plugins/lua/neural.lua

index 9ed26dafb0f4a33aa403d8bf3b089ef1040d28c6..9894ce4df3b2aba2b062525e20af14ef0f38ce48 100644 (file)
@@ -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',