diff options
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/map.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index d9f3053fd..0f622a209 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -940,8 +940,14 @@ rspamd_radix_read (rspamd_mempool_t * pool, gint len, struct map_cb_data *data) { + radix_compressed_t *tree; + rspamd_mempool_t *rpool; + if (data->cur_data == NULL) { - data->cur_data = radix_create_compressed (); + tree = radix_create_compressed (); + rpool = radix_get_pool (tree); + memcpy (rpool->tag.uid, pool->tag.uid, sizeof (rpool->tag.uid)); + data->cur_data = tree; } return rspamd_parse_abstract_list (pool, chunk, |