]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix parsing messages with no body
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Jan 2017 11:19:25 +0000 (11:19 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 9 Jan 2017 11:19:46 +0000 (11:19 +0000)
src/libmime/mime_parser.c

index bd976a9fc1a86d00d1e0454802508092a90edb00..c409e404d8af5120e5f56e89a37dade996cb62f9 100644 (file)
@@ -859,6 +859,9 @@ rspamd_mime_parse_message (struct rspamd_task *task,
                                        task->task_pool,
                                        "Content-Type", FALSE);
                }
+               else {
+                       body_pos = 0;
+               }
 
                pbegin = st->start + body_pos;
                plen = st->end - pbegin;