aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-09 11:19:25 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-01-09 11:19:46 +0000
commitfb56b9e2e9be8724f303f6d06b8fcaf47552f300 (patch)
treee11f8a891ff04b6509c689b28e452cc9bd2e79b1 /src/libmime/mime_parser.c
parent4692ef61abe63847b370328c5e2193a3eca763a2 (diff)
downloadrspamd-fb56b9e2e9be8724f303f6d06b8fcaf47552f300.tar.gz
rspamd-fb56b9e2e9be8724f303f6d06b8fcaf47552f300.zip
[Fix] Fix parsing messages with no body
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index bd976a9fc..c409e404d 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -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;