diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-09 12:44:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-09 12:44:36 +0000 |
commit | 628c70f017b2bd30d82ed33d2601d889e9f19506 (patch) | |
tree | b397157c9cb531182fba623ab22af3d4751674cf /src | |
parent | e620e76baf2d3821a91602854d5d47aad3fe38bf (diff) | |
download | rspamd-628c70f017b2bd30d82ed33d2601d889e9f19506.tar.gz rspamd-628c70f017b2bd30d82ed33d2601d889e9f19506.zip |
[Minor] Add an extra check
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/fuzzy_check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c index 5f2c5a0c4..9874c8bbc 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) { |