Browse Source

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

tags/2.7
Vsevolod Stakhov 3 years ago
parent
commit
910b149cd1
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      src/libserver/composites.c

+ 2
- 1
src/libserver/composites.c View 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);

Loading…
Cancel
Save