diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-04 15:00:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-04 15:00:30 +0000 |
commit | ab46c92e0cae7b8b0dd55bdc634957095cda1916 (patch) | |
tree | 0f2695f56601a1593b190b58f70cb4a3b5da3343 | |
parent | 22946f3b05a7021ff05e4b21de1e56fd2d32bcce (diff) | |
download | rspamd-ab46c92e0cae7b8b0dd55bdc634957095cda1916.tar.gz rspamd-ab46c92e0cae7b8b0dd55bdc634957095cda1916.zip |
[Minor] Oops, set item just on registration phase
-rw-r--r-- | src/libserver/rspamd_symcache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/rspamd_symcache.c b/src/libserver/rspamd_symcache.c index 832c5237b..d5022cedd 100644 --- a/src/libserver/rspamd_symcache.c +++ b/src/libserver/rspamd_symcache.c @@ -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; |