diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-17 14:56:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-12-17 14:56:21 +0000 |
commit | 6c28c4d2d74ed8391daf99fba4c64cb13c902f27 (patch) | |
tree | 920408e43d4c379b5954dad9ac878283104d2648 /src/libmime/mime_parser.c | |
parent | 4eda8b70db67079e85a5978f7f4585a0f6a61f10 (diff) | |
download | rspamd-6c28c4d2d74ed8391daf99fba4c64cb13c902f27.tar.gz rspamd-6c28c4d2d74ed8391daf99fba4c64cb13c902f27.zip |
[Fix] Core: Fix content calculations for message parts
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r-- | src/libmime/mime_parser.c | 4 |
1 files 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, |