aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-01-22 18:42:50 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-01-22 18:42:50 +0300
commitf411d46ff24dc2bcc18fd2ea29f1f16612fc676d (patch)
treefed84311c81dce0ea529d62e49c99979866f412e /src/worker.c
parent480899d784fc491a81a88a7bd95e210d9121d69b (diff)
downloadrspamd-f411d46ff24dc2bcc18fd2ea29f1f16612fc676d.tar.gz
rspamd-f411d46ff24dc2bcc18fd2ea29f1f16612fc676d.zip
* Rework statfiles result processing
* Fix small bug in protocol implementation (\r -> \r\n)
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/worker.c b/src/worker.c
index 809adddda..bed6e3d91 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -230,6 +230,8 @@ accept_socket (int fd, short what, void *arg)
new_task->task_pool = memory_pool_new (memory_pool_get_size ());
/* Add destructor for recipients list (it would be better to use anonymous function here */
memory_pool_add_destructor (new_task->task_pool, (pool_destruct_func)rcpt_destruct, new_task);
+ new_task->results = 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->results);
worker->srv->stat->connections_count ++;
/* Read event */