From: Vsevolod Stakhov Date: Mon, 9 Dec 2019 12:44:36 +0000 (+0000) Subject: [Minor] Add an extra check X-Git-Tag: 2.3~230 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=628c70f017b2bd30d82ed33d2601d889e9f19506;p=thirdparty%2Frspamd.git [Minor] Add an extra check --- diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 5f2c5a0c4c..9874c8bbc0 100644 --- a/src/plugins/fuzzy_check.c +++ b/src/plugins/fuzzy_check.c @@ -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) {