From: Vsevolod Stakhov Date: Mon, 1 Jul 2019 10:50:27 +0000 (+0100) Subject: [Minor] Exclude virtual symbols when doing static checks X-Git-Tag: 2.0~689 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbe77ff6ecd18b43d520addbcc88217170c1d85b;p=rspamd.git [Minor] Exclude virtual symbols when doing static checks --- 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) {