summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-09 18:01:19 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-09 18:01:19 +0100
commit74f35a297bede82503e83fa16b0b8ad55aeec75e (patch)
treeef2e915d849140437bdc5e51e98959e37bc27878 /src
parentae98b4491585045b0f8655d8335c8044cea15280 (diff)
downloadrspamd-74f35a297bede82503e83fa16b0b8ad55aeec75e.tar.gz
rspamd-74f35a297bede82503e83fa16b0b8ad55aeec75e.zip
[Minor] Process all stat backends even in case of failure
Diffstat (limited to 'src')
-rw-r--r--src/libstat/stat_process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 24fcd7312..e8e08f6d1 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -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