commit c5d553b: [Minor] Fix backward compatibility with old assumption about empty settings

Vsevolod Stakhov vsevolod at rspamd.com
Sat Nov 26 21:49:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-11-26 21:42:09 +0000
URL: https://github.com/rspamd/rspamd/commit/c5d553b0be275cfb649164ab81233465cdf92a66 (HEAD -> master)

[Minor] Fix backward compatibility with old assumption about empty settings

---
 src/plugins/lua/settings.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua
index 80065ec4f..9ae372dd7 100644
--- a/src/plugins/lua/settings.lua
+++ b/src/plugins/lua/settings.lua
@@ -1035,7 +1035,7 @@ local function process_settings_table(tbl, allow_ids, mempool, is_static)
             name, nchecks)
       end
     else
-      if not elt.disabled then
+      if not elt.disabled and elt.external_map then
         lua_util.debugm(N, rspamd_config, 'registered settings %s with no checks, assume it as implicit',
             name)
         out.implicit = 1


More information about the Commits mailing list