diff options
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worker.c b/src/worker.c index 91797a6dc..079fa8fae 100644 --- a/src/worker.c +++ b/src/worker.c @@ -130,7 +130,7 @@ rspamd_worker_body_handler (struct rspamd_http_connection *conn, } if (msg->peer_key) { - task->peer_key = g_string_new (msg->peer_key->str); + task->peer_key = rspamd_http_connection_key_ref (msg->peer_key); } if (!rspamd_task_process (task, msg, ctx->classify_pool, TRUE)) { |