From: Vsevolod Stakhov Date: Tue, 20 Aug 2019 10:45:56 +0000 (+0100) Subject: [Fix] Fix offsets when parsing message/rfc822 in multipart X-Git-Tag: 2.0~377 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9da63b5e1d3de12591e27db64b573b2e3581978d;p=rspamd.git [Fix] Fix offsets when parsing message/rfc822 in multipart --- diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c index db945f2ed..3dbe5cb71 100644 --- a/src/libmime/mime_parser.c +++ b/src/libmime/mime_parser.c @@ -1353,7 +1353,7 @@ rspamd_mime_parse_message (struct rspamd_task *task, start = nst->start + start_boundary->start; if (end > start && - (ret = rspamd_mime_process_multipart_node (task, st, + (ret = rspamd_mime_process_multipart_node (task, nst, NULL, start, end, FALSE, err)) != RSPAMD_MIME_PARSE_OK) { if (nst != st) {