diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-27 18:15:12 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-02-27 18:15:12 +0000 |
commit | 1564b37d8b8f9ed7018ee5afef50ad2bf4409b28 (patch) | |
tree | fc1d645bb613301d7725263e933b6faf28d8fcce /src/libstat/stat_process.c | |
parent | a9db558101019205c6021b065451f14c905a5a21 (diff) | |
download | rspamd-1564b37d8b8f9ed7018ee5afef50ad2bf4409b28.tar.gz rspamd-1564b37d8b8f9ed7018ee5afef50ad2bf4409b28.zip |
[Minor] Fix classifiers disabling
Diffstat (limited to 'src/libstat/stat_process.c')
-rw-r--r-- | src/libstat/stat_process.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstat/stat_process.c b/src/libstat/stat_process.c index 7eff21e52..d71184f82 100644 --- a/src/libstat/stat_process.c +++ b/src/libstat/stat_process.c @@ -451,8 +451,8 @@ rspamd_stat_classifiers_process (struct rspamd_stat_ctx *st_ctx, skip = FALSE; if (!(cl->cfg->flags & RSPAMD_FLAG_CLASSIFIER_NO_BACKEND)) { - for (j = 0; j < cl->statfiles_ids->len; i++) { - id = g_array_index (cl->statfiles_ids, gint, i); + for (j = 0; j < cl->statfiles_ids->len; j++) { + id = g_array_index (cl->statfiles_ids, gint, j); bk_run = g_ptr_array_index (task->stat_runtimes, id); if (bk_run == NULL) { |