aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symcache/symcache_item.cxx
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-05-06 16:43:14 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-05-06 16:43:14 +0100
commit2e502bb63f5e8397594eef0f7ff7e98a9f8d0cb7 (patch)
tree61b014470a2646ea3a832d32abbd71b04ca132ad /src/libserver/symcache/symcache_item.cxx
parentf4175571c737ebd0bef64bcf49cb09cc40f8750b (diff)
downloadrspamd-2e502bb63f5e8397594eef0f7ff7e98a9f8d0cb7.tar.gz
rspamd-2e502bb63f5e8397594eef0f7ff7e98a9f8d0cb7.zip
[Minor] Fix logic
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 f78605b13..e918d5b2c 100644
--- a/src/libserver/symcache/symcache_item.cxx
+++ b/src/libserver/symcache/symcache_item.cxx
@@ -300,7 +300,7 @@ auto cache_item::is_allowed(struct rspamd_task *task, bool exec_only) const -> b
}
if (!(flags & SYMBOL_TYPE_EXPLICIT_DISABLE)) {
- if (allowed_ids.check_id(task->settings_elt->id)) {
+ if (!allowed_ids.check_id(task->settings_elt->id)) {
if (task->settings_elt->policy == RSPAMD_SETTINGS_POLICY_IMPLICIT_ALLOW) {
msg_debug_cache_task("allow execution of %s settings id %ud "