From: Vsevolod Stakhov Date: Tue, 25 Jun 2019 11:22:09 +0000 (+0100) Subject: [Minor] Settings: Another fix of settings application X-Git-Tag: 2.0~733 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d7ba7b3a66292cef8c0fe2d1daed8552fd98eb8;p=thirdparty%2Frspamd.git [Minor] Settings: Another fix of settings application --- diff --git a/src/plugins/lua/settings.lua b/src/plugins/lua/settings.lua index e3e4b8986f..de9ac5c65d 100644 --- a/src/plugins/lua/settings.lua +++ b/src/plugins/lua/settings.lua @@ -454,14 +454,14 @@ local function check_settings(task) -- Extract static settings local cached = lua_settings.settings_by_id(s.rule.id) - if not cached then + if not cached or not cached.settings or not cached.settings.apply then rspamd_logger.errx(task, 'unregistered settings id found: %s!', s.rule.id) else rspamd_logger.infox(task, "<%s> apply static settings %s (id = %s); %s matched", task:get_message_id(), cached.name, s.rule.id, table.concat(matched, ',')) - apply_settings(task, cached.settings, s.rule.id) + apply_settings(task, cached.settings.apply, s.rule.id) end else