diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-13 09:04:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-05-13 09:04:28 +0100 |
commit | 31d00c13a6bb071b92a03e939069998a837d5f0a (patch) | |
tree | 8b3ba782d075ee7c8b4015eac2b889072a48557f | |
parent | a08844879949bcc30cba8e84102f1a6674b38a43 (diff) | |
download | rspamd-31d00c13a6bb071b92a03e939069998a837d5f0a.tar.gz rspamd-31d00c13a6bb071b92a03e939069998a837d5f0a.zip |
[Minor] Check for parts with no words
-rw-r--r-- | src/libmime/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 1d61b9807..9322bbd33 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -288,7 +288,7 @@ rspamd_extract_words (struct rspamd_task *task, } #endif - if (part->normalized_words->len) { + if (part->normalized_words && part->normalized_words->len) { gdouble *avg_len_p, *short_len_p; avg_len_p = rspamd_mempool_get_variable (task->task_pool, |