diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-29 17:39:01 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-08-29 17:39:01 +0100 |
commit | 45dfcb815b0ba7996978d22fa3d7de6756ad86b9 (patch) | |
tree | 6edabed2935164dcebc3ec994269eb3d78196791 /src | |
parent | 8e15ccc0ad087b016865dc2fdd3bc13ccb5f8373 (diff) | |
download | rspamd-45dfcb815b0ba7996978d22fa3d7de6756ad86b9.tar.gz rspamd-45dfcb815b0ba7996978d22fa3d7de6756ad86b9.zip |
Fix one more map pool.
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/map.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index 10f5d53ce..d7a567538 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -608,7 +608,9 @@ rspamd_map_add (struct rspamd_config *cfg, new_map->map_data = hdata; } /* Temp pool */ - new_map->pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), NULL); + new_map->pool = rspamd_mempool_new (rspamd_mempool_suggest_size (), "map"); + memcpy (cfg->map_pool->tag.uid, cfg->cfg_pool->tag.uid, + sizeof (cfg->map_pool->tag.uid)); cfg->maps = g_list_prepend (cfg->maps, new_map); |