From: Vsevolod Stakhov Date: Thu, 3 Sep 2015 15:07:04 +0000 (+0100) Subject: Link logging for the map and associated radix trie. X-Git-Tag: 1.0.0~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c1d449d3d3eb2d73fb653f250aeb1a6afba77f45;p=thirdparty%2Frspamd.git Link logging for the map and associated radix trie. --- diff --git a/src/libutil/map.c b/src/libutil/map.c index d9f3053fdd..0f622a2099 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,