]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Process all stat backends even in case of failure
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 9 Jul 2019 17:01:19 +0000 (18:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 9 Jul 2019 17:01:19 +0000 (18:01 +0100)
src/libstat/stat_process.c

index 24fcd73125d2323a12032e0c25edfea8b050faa5..e8e08f6d11507594af3f5ebe9693c29e9cdd468b 100644 (file)
@@ -273,6 +273,7 @@ rspamd_stat_backends_post_process (struct rspamd_stat_ctx *st_ctx,
        struct rspamd_statfile *st;
        struct rspamd_classifier *cl;
        gpointer bk_run;
+       gboolean ret = TRUE;
 
        g_assert (task->stat_runtimes != NULL);
 
@@ -288,12 +289,12 @@ rspamd_stat_backends_post_process (struct rspamd_stat_ctx *st_ctx,
 
                if (bk_run != NULL) {
                        if (!st->backend->finalize_process (task, bk_run, st_ctx)) {
-                               return FALSE;
+                               ret = FALSE;
                        }
                }
        }
 
-       return TRUE;
+       return ret;
 }
 
 static void