diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-14 17:08:30 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-12-14 17:08:30 +0000 |
commit | 910b149cd17c5802d5a2838b6fe6efd6549985df (patch) | |
tree | e3495878802dbc45ce69d83c535b0accac66f15d /src | |
parent | 7453142b863aab9cbfebaa43eaeb3d2f497fde24 (diff) | |
download | rspamd-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.c | 3 |
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); |