diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-06-19 16:12:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-06-19 16:12:10 +0100 |
commit | 229362aa191fd7d4981338ec39c0b9a947206195 (patch) | |
tree | e84913d387b4a36854852ef61e8db032d3a5598a /src/libserver/symcache/symcache_item.cxx | |
parent | 5273dcc8aa35eaaeebcd144929d05d8d4b84d357 (diff) | |
download | rspamd-229362aa191fd7d4981338ec39c0b9a947206195.tar.gz rspamd-229362aa191fd7d4981338ec39c0b9a947206195.zip |
[Minor] Use internal flags
Diffstat (limited to 'src/libserver/symcache/symcache_item.cxx')
-rw-r--r-- | src/libserver/symcache/symcache_item.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx index 0b5de9f3a..490a87880 100644 --- a/src/libserver/symcache/symcache_item.cxx +++ b/src/libserver/symcache/symcache_item.cxx @@ -334,11 +334,11 @@ auto cache_item::is_allowed(struct rspamd_task *task, bool exec_only) const -> b } /* Static checks */ - if (!enabled || + if (!(internal_flags & cache_item::bit_enabled) || (RSPAMD_TASK_IS_EMPTY(task) && !(flags & SYMBOL_TYPE_EMPTY)) || (flags & SYMBOL_TYPE_MIME_ONLY && !RSPAMD_TASK_IS_MIME(task))) { - if (!enabled) { + if (!(internal_flags & cache_item::bit_enabled)) { msg_debug_cache_task("skipping %s of %s as it is permanently disabled", what, symbol.c_str()); |