From: Vsevolod Stakhov Date: Wed, 5 Apr 2017 16:59:02 +0000 (+0100) Subject: [Minor] Use the correct context when dealing with attached messages X-Git-Tag: 1.5.5~42 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e6201536d6cec6f6014862e7237d4030cb8b1e8d;p=rspamd.git [Minor] Use the correct context when dealing with attached messages --- 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) {