]> source.dussan.org Git - rspamd.git/commitdiff
* Forgotten call of normalizer function
authorcebka@lenovo-laptop <cebka@lenovo-laptop>
Thu, 14 Jan 2010 11:26:23 +0000 (14:26 +0300)
committercebka@lenovo-laptop <cebka@lenovo-laptop>
Thu, 14 Jan 2010 11:26:23 +0000 (14:26 +0300)
src/classifiers/winnow.c

index 522d3f4d5b25cc60d80dc6a6d4c2ed2966819206..e103dd50de59d291e64c5c5eac8b164b1b8395df 100644 (file)
@@ -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;