aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_parser.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-05 17:59:02 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-04-05 17:59:02 +0100
commite6201536d6cec6f6014862e7237d4030cb8b1e8d (patch)
treed986c6f2f2719c1113b542294a50fcbae5cf1066 /src/libmime/mime_parser.c
parent5a17af46f707dccaa4094fd6e61d338eb3980022 (diff)
downloadrspamd-e6201536d6cec6f6014862e7237d4030cb8b1e8d.tar.gz
rspamd-e6201536d6cec6f6014862e7237d4030cb8b1e8d.zip
[Minor] Use the correct context when dealing with attached messages
Diffstat (limited to 'src/libmime/mime_parser.c')
-rw-r--r--src/libmime/mime_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/mime_parser.c b/src/libmime/mime_parser.c
index e40a5749f..8becc888b 100644
--- a/src/libmime/mime_parser.c
+++ b/src/libmime/mime_parser.c
@@ -1186,8 +1186,8 @@ rspamd_mime_parse_message (struct rspamd_task *task,
}
if (part) {
- /* Remove message part from the stack */
- g_ptr_array_remove_index_fast (nst->stack, nst->stack->len - 1);
+ /* Remove message part from the parent stack */
+ g_ptr_array_remove_index_fast (st->stack, st->stack->len - 1);
}
if (nst != st) {