]> source.dussan.org Git - rspamd.git/commitdiff
* Fix assertion while look up value in NULL hash (found by cirtin)
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 18 Aug 2010 10:46:58 +0000 (14:46 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Wed, 18 Aug 2010 10:46:58 +0000 (14:46 +0400)
src/view.c

index 13de5e8a93b4cab8979fb228cc9d1fedfb748779..ebfc06dc06e8ab625f457f2bbc46479965366986 100644 (file)
@@ -40,6 +40,7 @@ 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->rcpt_hash = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal);
        new->ip_tree = radix_tree_create ();
        new->client_ip_tree = radix_tree_create ();