commit 9da63b5: [Fix] Fix offsets when parsing message/rfc822 in multipart

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Aug 20 11:35:03 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-20 11:45:56 +0100
URL: https://github.com/rspamd/rspamd/commit/9da63b5e1d3de12591e27db64b573b2e3581978d

[Fix] Fix offsets when parsing message/rfc822 in multipart

---
 src/libmime/mime_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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) {


More information about the Commits mailing list