aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/symbols_cache.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index fa7b20eda..dac24a1cf 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -2242,6 +2242,12 @@ rspamd_symbols_cache_find_filter (struct symbols_cache *cache,
item = g_hash_table_lookup (cache->items_by_symbol, name);
if (item != NULL) {
+
+ if (item->is_virtual) {
+ item = g_ptr_array_index (cache->filters,
+ item->specific.virtual.parent);
+ }
+
if (!item->is_filter) {
return -1;
}