From: Vsevolod Stakhov Date: Thu, 2 Apr 2015 11:37:10 +0000 (+0100) Subject: Do not use normalized words if they are absent. X-Git-Tag: 0.9.0~349 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c913b0a1d1f581a40d3302326e2a6bfdb4d66eea;p=rspamd.git Do not use normalized words if they are absent. --- 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 {