From: Vsevolod Stakhov Date: Wed, 23 Sep 2009 11:36:00 +0000 (+0400) Subject: * Small fixes in task construction X-Git-Tag: 0.2.7~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7fb0f457270165acbe6d108b5b675a2012559fbb;p=rspamd.git * Small fixes in task construction --- diff --git a/src/controller.c b/src/controller.c index dd1f4a91b..0e11b6ae1 100644 --- a/src/controller.c +++ b/src/controller.c @@ -127,7 +127,7 @@ free_session (void *ud) struct mime_part *p; struct controller_session *session = ud; - msg_info ("free_session: freeing session %p", session); + msg_debug ("free_session: freeing session %p", session); while ((part = g_list_first (session->parts))) { session->parts = g_list_remove_link (session->parts, part); diff --git a/src/html.c b/src/html.c index 1377b051a..d216b751a 100644 --- a/src/html.c +++ b/src/html.c @@ -438,7 +438,6 @@ static entity entities_defs[] = { "lsaquo", 8249 }, { "rsaquo", 8250 }, { "euro", 8364 }, - { NULL, 0 } }; diff --git a/src/worker.c b/src/worker.c index b900eada6..49324031c 100644 --- a/src/worker.c +++ b/src/worker.c @@ -295,6 +295,7 @@ construct_task (struct rspamd_worker *worker) new_task->re_cache = g_hash_table_new (g_str_hash, g_str_equal); memory_pool_add_destructor (new_task->task_pool, (pool_destruct_func)g_hash_table_destroy, new_task->re_cache); new_task->s = new_async_session (new_task->task_pool, free_task_hard, new_task); + new_task->sock = -1; return new_task; }