aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-01 11:50:27 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-01 11:50:27 +0100
commitdbe77ff6ecd18b43d520addbcc88217170c1d85b (patch)
tree6c611986af65f1050ad3928698b1b9f59a8b59a2 /src
parent6bd388ae930900bef74532f810c4411650761868 (diff)
downloadrspamd-dbe77ff6ecd18b43d520addbcc88217170c1d85b.tar.gz
rspamd-dbe77ff6ecd18b43d520addbcc88217170c1d85b.zip
[Minor] Exclude virtual symbols when doing static checks
Diffstat (limited to 'src')
-rw-r--r--src/libserver/rspamd_symcache.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c
index 59423368e..2cd1d1277 100644
--- a/src/libserver/rspamd_symcache.c
+++ b/src/libserver/rspamd_symcache.c
@@ -1441,14 +1441,21 @@ rspamd_symcache_is_item_allowed (struct rspamd_task *task,
if (!item->enabled) {
msg_debug_cache_task ("skipping check of %s as it is permanently disabled",
item->symbol);
+
+ return FALSE;
}
else {
- msg_debug_cache_task ("skipping check of %s as it cannot be "
- "executed for this task type",
- item->symbol);
- }
+ /*
+ * Exclude virtual symbols
+ */
+ if (exec_only) {
+ msg_debug_cache_task ("skipping check of %s as it cannot be "
+ "executed for this task type",
+ item->symbol);
- return FALSE;
+ return FALSE;
+ }
+ }
}
if (!exec_only) {