commit 6c28c4d: [Fix] Core: Fix content calculations for message parts
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Dec 27 18:28:10 UTC 2018
Author: Vsevolod Stakhov
Date: 2018-12-17 14:56:21 +0000
URL: https://github.com/rspamd/rspamd/commit/6c28c4d2d74ed8391daf99fba4c64cb13c902f27
[Fix] Core: Fix content calculations for message parts
---
src/libmime/mime_parser.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index 2ba48e372..242c656f0 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -1216,8 +1216,8 @@ rspamd_mime_parse_message (struct rspamd_task *task,
}
}
- pbegin = part->parsed_data.begin;
- plen = part->parsed_data.len;
+ pbegin = part->parsed_data.begin + body_pos;
+ plen = part->parsed_data.len - body_pos;
hdrs = rspamd_message_get_header_from_hash (npart->raw_headers,
task->task_pool,
More information about the Commits
mailing list