]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix words decay algorithm
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Sep 2018 15:03:30 +0000 (16:03 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 11 Sep 2018 15:03:30 +0000 (16:03 +0100)
src/libstat/tokenizers/tokenizers.c

index ac7f8be8525f7128cc088de8861150b464b0752f..6804dff8a5ac9659325f76309fa362eacf480aa5 100644 (file)
@@ -428,7 +428,7 @@ start_over:
                                }
 
                                if (rspamd_tokenize_check_limit (decay, word_decay, res->len,
-                                               &hv, &prob, &token, pos - text, len)) {
+                                               &hv, &prob, &token, p, len)) {
                                        if (!decay) {
                                                decay = TRUE;
                                        } else {