commit ab46c92: [Minor] Oops, set item just on registration phase
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Dec 4 15:07:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-12-04 15:00:30 +0000
URL: https://github.com/rspamd/rspamd/commit/ab46c92e0cae7b8b0dd55bdc634957095cda1916 (HEAD -> master)
[Minor] Oops, set item just on registration phase
---
src/libserver/rspamd_symcache.c | 2 ++
1 file changed, 2 insertions(+)
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;
More information about the Commits
mailing list