aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-14 17:08:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-12-14 17:08:30 +0000
commit910b149cd17c5802d5a2838b6fe6efd6549985df (patch)
treee3495878802dbc45ce69d83c535b0accac66f15d /src
parent7453142b863aab9cbfebaa43eaeb3d2f497fde24 (diff)
downloadrspamd-910b149cd17c5802d5a2838b6fe6efd6549985df.tar.gz
rspamd-910b149cd17c5802d5a2838b6fe6efd6549985df.zip
[Minor] Composites: Insert symbol to the selected result structure
Diffstat (limited to 'src')
-rw-r--r--src/libserver/composites.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libserver/composites.c b/src/libserver/composites.c
index ba3e64547..6f3e8a7b0 100644
--- a/src/libserver/composites.c
+++ b/src/libserver/composites.c
@@ -818,7 +818,8 @@ composites_foreach_callback (gpointer key, gpointer value, void *data)
/* Result bit */
if (rc != 0) {
setbit (cd->checked, comp->id * 2 + 1);
- rspamd_task_insert_result_single (cd->task, key, 1.0, NULL);
+ rspamd_task_insert_result_full (cd->task, key, 1.0, NULL,
+ RSPAMD_SYMBOL_INSERT_SINGLE, cd->metric_res);
}
else {
clrbit (cd->checked, comp->id * 2 + 1);