]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix offsets when parsing message/rfc822 in multipart
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Aug 2019 10:45:56 +0000 (11:45 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 20 Aug 2019 10:45:56 +0000 (11:45 +0100)
src/libmime/mime_parser.c

index db945f2ed1a1909f4ac6a67d2eef071e27aa5d7a..3dbe5cb71c929c687a862660f6f71e1395a481f9 100644 (file)
@@ -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) {