]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix dependencies resolution
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 28 Oct 2018 11:38:54 +0000 (11:38 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 28 Oct 2018 11:38:54 +0000 (11:38 +0000)
src/libserver/symbols_cache.c

index fa7b20edabea20f11377974c2b05af985ed92d03..dac24a1cfe70165002951de82981a44ee4f09e35 100644 (file)
@@ -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;
                }