From 92563dbf0220d91dc4be0a418fb62ccc220dd447 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 3 Apr 2020 11:13:56 +0100 Subject: [Project] Start results chain implementation --- src/libserver/task.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/libserver') diff --git a/src/libserver/task.c b/src/libserver/task.c index 3e8dd381f..a0d7bb12a 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -111,7 +111,8 @@ rspamd_task_new (struct rspamd_worker *worker, new_task->request_headers = kh_init (rspamd_req_headers_hash); new_task->sock = -1; new_task->flags |= (RSPAMD_TASK_FLAG_MIME); - new_task->result = rspamd_create_metric_result (new_task); + /* Default results chain */ + rspamd_create_metric_result (new_task, NULL, -1); new_task->queue_id = "undef"; new_task->messages = ucl_object_typed_new (UCL_OBJECT); -- cgit v1.2.3