From e6201536d6cec6f6014862e7237d4030cb8b1e8d Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 5 Apr 2017 17:59:02 +0100 Subject: [PATCH] [Minor] Use the correct context when dealing with attached messages --- 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 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) { -- 2.39.5