]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add an extra check
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Dec 2019 12:44:36 +0000 (12:44 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Dec 2019 12:44:36 +0000 (12:44 +0000)
src/plugins/fuzzy_check.c

index 5f2c5a0c4ca635e2a5272d6ba96feaf18aa9e639..9874c8bbc071834db203f67c1ada8d34832858ac 100644 (file)
@@ -2148,7 +2148,7 @@ fuzzy_insert_metric_results (struct rspamd_task *task, GPtrArray *results)
 
        if (task->message) {
                PTR_ARRAY_FOREACH (MESSAGE_FIELD (task, text_parts), i, tp) {
-                       if (!IS_PART_EMPTY (tp) && tp->utf_words->len > 0) {
+                       if (!IS_PART_EMPTY (tp) && tp->utf_words != NULL && tp->utf_words->len > 0) {
                                seen_text_part = TRUE;
 
                                if (tp->utf_stripped_text.magic == UTEXT_MAGIC) {