commit 2e502bb: [Minor] Fix logic
Vsevolod Stakhov
vsevolod at rspamd.com
Fri May 6 15:49:03 UTC 2022
Author: Vsevolod Stakhov
Date: 2022-05-06 16:43:14 +0100
URL: https://github.com/rspamd/rspamd/commit/2e502bb63f5e8397594eef0f7ff7e98a9f8d0cb7 (HEAD -> master)
[Minor] Fix logic
---
src/libserver/symcache/symcache_item.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 "
More information about the Commits
mailing list