diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-29 19:45:35 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-10-29 19:45:35 +0300 |
commit | 1290cafef2180e5435cbbfd5a72527d0be2f4970 (patch) | |
tree | f31058a38ad32d580677b86663c4f9ef96f25efc /src/view.c | |
parent | 15096c5130088a34af3384cac639ca8807a13f8e (diff) | |
download | rspamd-1290cafef2180e5435cbbfd5a72527d0be2f4970.tar.gz rspamd-1290cafef2180e5435cbbfd5a72527d0be2f4970.zip |
* Fix an issue with workers spawning
* Fix an issue with initializing radix lists in views
Diffstat (limited to 'src/view.c')
-rw-r--r-- | src/view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/view.c b/src/view.c index f3a273899..9a191fe80 100644 --- a/src/view.c +++ b/src/view.c @@ -40,8 +40,9 @@ init_view (memory_pool_t * pool) new->pool = pool; new->from_hash = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal); new->symbols_hash = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal); + new->ip_tree = radix_tree_create (); + new->client_ip_tree = radix_tree_create (); - memory_pool_add_destructor (new->pool, (pool_destruct_func) g_hash_table_destroy, new->from_hash); memory_pool_add_destructor (new->pool, (pool_destruct_func) g_hash_table_destroy, new->symbols_hash); return new; |