diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-03 16:07:04 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-03 16:07:04 +0100 |
commit | c1d449d3d3eb2d73fb653f250aeb1a6afba77f45 (patch) | |
tree | e701d837df6fe73d7c9d26619f4be8ea13277d0e /src/libutil | |
parent | 11d411e3850a36c3185c79d5fa091868b7ef4a81 (diff) | |
download | rspamd-c1d449d3d3eb2d73fb653f250aeb1a6afba77f45.tar.gz rspamd-c1d449d3d3eb2d73fb653f250aeb1a6afba77f45.zip |
Link logging for the map and associated radix trie.
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, |