aboutsummaryrefslogtreecommitdiffstats
path: root/src/classifiers/winnow.c
diff options
context:
space:
mode:
authorcebka@lenovo-laptop <cebka@lenovo-laptop>2010-01-14 14:26:23 +0300
committercebka@lenovo-laptop <cebka@lenovo-laptop>2010-01-14 14:26:23 +0300
commit95133a591e7f09a0601b34e8c436cd3c3483af37 (patch)
treee9d20582cef4d5f2f1c2e2625eada2828c127af0 /src/classifiers/winnow.c
parentfc70f10e7c2a7b0aeb5da7b28c64131b03538e76 (diff)
downloadrspamd-95133a591e7f09a0601b34e8c436cd3c3483af37.tar.gz
rspamd-95133a591e7f09a0601b34e8c436cd3c3483af37.zip
* Forgotten call of normalizer function
Diffstat (limited to 'src/classifiers/winnow.c')
-rw-r--r--src/classifiers/winnow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/classifiers/winnow.c b/src/classifiers/winnow.c
index 522d3f4d5..e103dd50d 100644
--- a/src/classifiers/winnow.c
+++ b/src/classifiers/winnow.c
@@ -170,6 +170,9 @@ winnow_classify (struct classifier_ctx *ctx, statfile_pool_t * pool, GTree * inp
if (data.count != 0) {
res = data.sum / data.count;
+ if (st->normalizer != NULL) {
+ res = st->normalizer (res, st->normalizer_data);
+ }
}
else {
res = 0;