]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Composites: Insert symbol to the selected result structure
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Dec 2020 17:08:30 +0000 (17:08 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 14 Dec 2020 17:08:30 +0000 (17:08 +0000)
src/libserver/composites.c

index ba3e6454797d72166b50c5e51611df71b63a3b58..6f3e8a7b06e99408f4f8587baa7ca1283816f30d 100644 (file)
@@ -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);