aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat/stat_config.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-05 18:02:47 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-01-05 18:02:47 +0000
commit8be715956820c4b14d3a3d7f41e50e4e69b7e679 (patch)
tree934d45c3e84b5e4c98982dee360267bd74e693a2 /src/libstat/stat_config.c
parenta53bd05ff9eac93f444b7bf8dd1607e16301ef5b (diff)
downloadrspamd-8be715956820c4b14d3a3d7f41e50e4e69b7e679.tar.gz
rspamd-8be715956820c4b14d3a3d7f41e50e4e69b7e679.zip
Fix bayes classifier for the new architecture
Diffstat (limited to 'src/libstat/stat_config.c')
-rw-r--r--src/libstat/stat_config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstat/stat_config.c b/src/libstat/stat_config.c
index 647079367..1cf19d412 100644
--- a/src/libstat/stat_config.c
+++ b/src/libstat/stat_config.c
@@ -133,6 +133,7 @@ rspamd_stat_init (struct rspamd_config *cfg)
cl = g_slice_alloc0 (sizeof (*cl));
cl->cfg = clf;
+ cl->ctx = stat_ctx;
cl->statfiles_ids = g_array_new (FALSE, FALSE, sizeof (gint));
/* Init classifier cache */