aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-03 11:13:56 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-04-03 11:13:56 +0100
commit92563dbf0220d91dc4be0a418fb62ccc220dd447 (patch)
tree905ea222a1b727ed6f778d291e687fece92065c5 /src/libserver
parent670fd89a3610a1617a7e684709d73c24a9b0a0dd (diff)
downloadrspamd-92563dbf0220d91dc4be0a418fb62ccc220dd447.tar.gz
rspamd-92563dbf0220d91dc4be0a418fb62ccc220dd447.zip
[Project] Start results chain implementation
Diffstat (limited to 'src/libserver')
-rw-r--r--src/libserver/task.c3
1 files changed, 2 insertions, 1 deletions
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);