commit 910b149: [Minor] Composites: Insert symbol to the selected result structure

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Dec 14 17:14:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-12-14 17:08:30 +0000
URL: https://github.com/rspamd/rspamd/commit/910b149cd17c5802d5a2838b6fe6efd6549985df (HEAD -> master)

[Minor] Composites: Insert symbol to the selected result structure

---
 src/libserver/composites.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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);


More information about the Commits mailing list