summaryrefslogtreecommitdiffstats
path: root/src/libmime/message.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime/message.c')
-rw-r--r--src/libmime/message.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c
index a5dec9775..4206211c1 100644
--- a/src/libmime/message.c
+++ b/src/libmime/message.c
@@ -856,7 +856,7 @@ rspamd_message_process_text_part_maybe (struct rspamd_task *task,
if (act != METRIC_ACTION_NOACTION) {
struct rspamd_metric_result *mres;
- mres = rspamd_create_metric_result (task);
+ mres = task->result;
if (mres != NULL) {
if (act == METRIC_ACTION_REJECT) {