aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-12 13:45:17 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-11-12 13:45:17 +0000
commitc55d36a3b0816bb780ee88aa74fc83763f1127a4 (patch)
treea696a3488bd2c5af9b8239963819f7466c953c5d /src/libmime/mime_parser.c
parent65f8d2660f3186f218d16624053a47a9933cadb6 (diff)
downloadrspamd-c55d36a3b0816bb780ee88aa74fc83763f1127a4.tar.gz
rspamd-c55d36a3b0816bb780ee88aa74fc83763f1127a4.zip
[Fix] Fix extraction of additional parts
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index 9ce39ad16..2f999de89 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -1286,7 +1286,7 @@ rspamd_mime_parse_message (struct rspamd_task *task,
if (nst->boundaries) {
struct rspamd_mime_boundary *boundary, *start_boundary = NULL,
*end_boundary = NULL;
- goffset cur_offset = st->pos - st->start,
+ goffset cur_offset = nst->pos - nst->start,
end_offset = st->end - st->start;
guint sel_idx = 0;