diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-30 18:18:05 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-07-30 18:18:05 +0100 |
commit | 0bcb1aae9ce1c4adb3661718da548ee1f7441c90 (patch) | |
tree | 66524a5f75f4707bbfbf32d571880957d4c4ed42 | |
parent | 68bf5d19235814aa245a296ca3dff36bd1bad1ce (diff) | |
download | rspamd-0bcb1aae9ce1c4adb3661718da548ee1f7441c90.tar.gz rspamd-0bcb1aae9ce1c4adb3661718da548ee1f7441c90.zip |
Allow messages with headers only.
-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 69d279302..ea7e191bb 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1528,7 +1528,7 @@ rspamd_message_parse (struct rspamd_task *task) hdr_end = g_mime_parser_get_headers_end (parser); if (hdr_start != -1 && hdr_end != -1) { g_assert (hdr_start < hdr_end); - g_assert (hdr_end < (gint64)len); + g_assert (hdr_end <= (gint64)len); task->raw_headers_content.begin = (gchar *)(p + hdr_start); task->raw_headers_content.len = (guint64)(hdr_end - hdr_start); process_raw_headers (task, task->raw_headers, |