aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorresec <resec0109@gmail.com>2019-11-07 19:00:03 +0800
committerresec <resec0109@gmail.com>2019-11-07 19:00:03 +0800
commit95c85692488911c9c8aa1b44027ed2c6b8b7be9c (patch)
tree705d6143d1a8805592ed313f240f2095b6fc23e4 /src/libstat
parent606c653671216b6575e4966e4c84a2f8da2fe43f (diff)
downloadrspamd-95c85692488911c9c8aa1b44027ed2c6b8b7be9c.tar.gz
rspamd-95c85692488911c9c8aa1b44027ed2c6b8b7be9c.zip
[Minor] #3129 Multiple classifiers on redis working incorrectly
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/backends/redis_backend.c2
-rw-r--r--src/libstat/stat_process.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/backends/redis_backend.c b/src/libstat/backends/redis_backend.c
index 7d79272c0..08edf1a4f 100644
--- a/src/libstat/backends/redis_backend.c
+++ b/src/libstat/backends/redis_backend.c
@@ -1328,7 +1328,7 @@ rspamd_redis_connected (redisAsyncContext *c, gpointer r, gpointer priv)
msg_warn_task ("skip obtaining bayes tokens for %s of classifier "
"%s: not enough learns %d; %d required",
rt->stcf->symbol, rt->stcf->clcf->name,
- (int)rt->learned, rt->stcf->clcf->min_learns););
+ (int)rt->learned, rt->stcf->clcf->min_learns);
}
}
}
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c
index 2ad7080d0..603e0ac96 100644
--- a/src/libstat/stat_process.c
+++ b/src/libstat/stat_process.c
@@ -342,7 +342,7 @@ rspamd_stat_classifiers_process (struct rspamd_stat_ctx *st_ctx,
if (bk_run != NULL) {
if (!st->backend->finalize_process (task, bk_run, st_ctx)) {
skip = TRUE;
- break
+ break;
}
}
}