aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symcache/symcache_item.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-12-19 15:02:20 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-12-19 15:02:20 +0000
commitde56620e125e27062248272b2028602d1e71b01c (patch)
treefa870b9a2339276bea462fcab39d93e735f24f2f /src/libserver/symcache/symcache_item.cxx
parenteaeffe7ae7ad8003f149aaea9596d2191e3d6f58 (diff)
downloadrspamd-de56620e125e27062248272b2028602d1e71b01c.tar.gz
rspamd-de56620e125e27062248272b2028602d1e71b01c.zip
[Minor] Fix behaviour of EXPLICIT_ENABLE with regard to settings
Diffstat (limited to 'src/libserver/symcache/symcache_item.cxx')
-rw-r--r--src/libserver/symcache/symcache_item.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx
index 4a9581fe7..233e8113a 100644
--- a/src/libserver/symcache/symcache_item.cxx
+++ b/src/libserver/symcache/symcache_item.cxx
@@ -408,7 +408,7 @@ auto cache_item::is_allowed(struct rspamd_task *task, bool exec_only) const -> b
task->settings_elt->id);
}
}
- else if (flags & SYMBOL_TYPE_EXPLICIT_ENABLE) {
+ else if ((flags & SYMBOL_TYPE_EXPLICIT_ENABLE) && !task->settings) {
msg_debug_cache_task("deny %s of %s as it must be explicitly enabled",
what,
symbol.c_str());