diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-29 23:06:45 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-29 23:06:45 +0000 |
commit | 9bcf7906eeb645e18f6ac95b5544f0da2c169eb2 (patch) | |
tree | 774f662476e0904457d5d7490bbd2da550a33fa7 /src/worker.c | |
parent | 58af43bae578a62f9f67ba842516e9afe78dfb05 (diff) | |
download | rspamd-9bcf7906eeb645e18f6ac95b5544f0da2c169eb2.tar.gz rspamd-9bcf7906eeb645e18f6ac95b5544f0da2c169eb2.zip |
Fix keys initialization.
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c index 0a6ce4a5e..91797a6dc 100644 --- a/src/worker.c +++ b/src/worker.c @@ -129,6 +129,10 @@ rspamd_worker_body_handler (struct rspamd_http_connection *conn, return 0; } + if (msg->peer_key) { + task->peer_key = g_string_new (msg->peer_key->str); + } + if (!rspamd_task_process (task, msg, ctx->classify_pool, TRUE)) { task->state = WRITE_REPLY; } @@ -354,7 +358,7 @@ start_worker (struct rspamd_worker *worker) rspamd_log_close (rspamd_main->logger); if (ctx->key) { - rspamd_http_connection_key_destroy (ctx->key); + rspamd_http_connection_key_unref (ctx->key); } exit (EXIT_SUCCESS); |