aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-27 10:27:26 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-27 10:27:26 +0000
commitd5c7760ec8cd2eba3996b340c11bf13e9eb0e3cb (patch)
tree947185753936834b834abb7aa33da2898f82158e /src
parent05f17c6cd61546712e5f213dc624b693e2b0dfa4 (diff)
downloadrspamd-d5c7760ec8cd2eba3996b340c11bf13e9eb0e3cb.tar.gz
rspamd-d5c7760ec8cd2eba3996b340c11bf13e9eb0e3cb.zip
[Minor] Fix for DSN
Diffstat (limited to 'src')
-rw-r--r--src/libstat/tokenizers/tokenizers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstat/tokenizers/tokenizers.c b/src/libstat/tokenizers/tokenizers.c
index c62718278..59e58809f 100644
--- a/src/libstat/tokenizers/tokenizers.c
+++ b/src/libstat/tokenizers/tokenizers.c
@@ -563,7 +563,7 @@ rspamd_tokenize_meta_words (struct rspamd_task *task)
rspamd_add_metawords_from_str (task->subject, strlen (task->subject), task);
}
- if (task->from_mime) {
+ if (task->from_mime && task->from_mime->len > 0) {
struct rspamd_email_address *addr;
addr = g_ptr_array_index (task->from_mime, 0);