aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/fuzzy_check.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-02 12:37:10 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-04-02 12:37:10 +0100
commitc913b0a1d1f581a40d3302326e2a6bfdb4d66eea (patch)
tree10bb2eeb3f53dbbcf9046591817a8a6f8c1db766 /src/plugins/fuzzy_check.c
parenteee2f2adaf4590013a09730f07afafc8a3a149cd (diff)
downloadrspamd-c913b0a1d1f581a40d3302326e2a6bfdb4d66eea.tar.gz
rspamd-c913b0a1d1f581a40d3302326e2a6bfdb4d66eea.zip
Do not use normalized words if they are absent.
Diffstat (limited to 'src/plugins/fuzzy_check.c')
-rw-r--r--src/plugins/fuzzy_check.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index a6bbacaf6..b88d490a2 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -537,7 +537,8 @@ fuzzy_preprocess_words (struct mime_text_part *part, rspamd_mempool_t *pool)
{
GArray *res;
- if (!part->is_utf || !part->language || part->language[0] == '\0') {
+ if (!part->is_utf || !part->language || part->language[0] == '\0' ||
+ part->normalized_words == NULL) {
res = part->words;
}
else {