]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, set item just on registration phase
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Dec 2019 15:00:30 +0000 (15:00 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 4 Dec 2019 15:00:30 +0000 (15:00 +0000)
src/libserver/rspamd_symcache.c

index 832c5237bc1da39374b293569ecf74c8888d0e67..d5022cedd118959c5b4e7bdf7369a86a358dcdd4 100644 (file)
@@ -1157,6 +1157,8 @@ rspamd_symcache_add_symbol (struct rspamd_symcache *cache,
                else {
                        item->is_virtual = TRUE;
                        item->specific.virtual.parent = parent;
+                       item->specific.virtual.parent_item =
+                                       g_ptr_array_index (cache->items_by_id, parent);
                        item->id = cache->virtual->len;
                        g_ptr_array_add (cache->virtual, item);
                        item->container = cache->virtual;