Browse Source

[Fix] Fix composites processing

tags/1.7.0
Vsevolod Stakhov 6 years ago
parent
commit
7c2b83ac6e
2 changed files with 3 additions and 2 deletions
  1. 2
    2
      src/libserver/composites.c
  2. 1
    0
      src/libserver/symbols_cache.c

+ 2
- 2
src/libserver/composites.c View File

@@ -285,7 +285,7 @@ composites_foreach_callback (gpointer key, gpointer value, void *data)
{
struct composites_data *cd = data;
struct rspamd_composite *comp = value;
gint rc;
gdouble rc;

cd->composite = comp;

@@ -311,7 +311,7 @@ composites_foreach_callback (gpointer key, gpointer value, void *data)
setbit (cd->checked, comp->id * 2);

/* Result bit */
if (rc) {
if (rc != 0) {
setbit (cd->checked, comp->id * 2 + 1);
rspamd_task_insert_result_single (cd->task, key, 1.0, NULL);
}

+ 1
- 0
src/libserver/symbols_cache.c View File

@@ -1609,6 +1609,7 @@ rspamd_symbols_cache_process_symbols (struct rspamd_task * task,
RSPAMD_CACHE_PASS_POSTFILTERS) {
checkpoint->pass = RSPAMD_CACHE_PASS_POSTFILTERS;
}

if (stage == RSPAMD_TASK_STAGE_IDEMPOTENT && checkpoint->pass <
RSPAMD_CACHE_PASS_IDEMPOTENT) {
checkpoint->pass = RSPAMD_CACHE_PASS_IDEMPOTENT;

Loading…
Cancel
Save