aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-18 16:01:05 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-18 16:01:05 +0000
commitaef1cac108507fcefba54694f46c4f2e8069c31d (patch)
tree5944bb32de8f4ded1cc972bf101f8846338418f2 /src/worker.c
parent9b31d260b9bee44456fd2f37eee6c4ba2c8aba60 (diff)
downloadrspamd-aef1cac108507fcefba54694f46c4f2e8069c31d.tar.gz
rspamd-aef1cac108507fcefba54694f46c4f2e8069c31d.zip
Implement refcounting for configuration
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c
index 8256b879e..933e83053 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -233,7 +233,7 @@ accept_socket (gint fd, short what, void *arg)
return;
}
- task = rspamd_task_new (worker);
+ task = rspamd_task_new (worker, ctx->cfg);
msg_info_task ("accepted connection from %s port %d",
rspamd_inet_address_to_string (addr),
@@ -267,7 +267,7 @@ accept_socket (gint fd, short what, void *arg)
/* Set up async session */
task->s = rspamd_session_create (task->task_pool, rspamd_task_fin,
- rspamd_task_restore, rspamd_task_free_hard, task);
+ rspamd_task_restore, (event_finalizer_t )rspamd_task_free, task);
if (ctx->key) {
rspamd_http_connection_set_key (task->http_conn, ctx->key);