]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use the correct context when dealing with attached messages
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 5 Apr 2017 16:59:02 +0000 (17:59 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 5 Apr 2017 16:59:02 +0000 (17:59 +0100)
src/libmime/mime_parser.c

index e40a5749fed6ea601b7038f7d298943cf784c2cb..8becc888baf38c799cae432bb5903170469d7006 100644 (file)
@@ -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) {