]> granicus.if.org Git - neomutt/commitdiff
defect 190853: Dereference after null check
authorRichard Russon <rich@flatcap.org>
Sat, 2 Mar 2019 15:28:10 +0000 (15:28 +0000)
committerRichard Russon <rich@flatcap.org>
Sun, 3 Mar 2019 00:56:07 +0000 (00:56 +0000)
postpone.c

index e368d751a115778a9a543ea10a46e9d139bbf3a9..188f0871d96a5bb61dfebdcbe11a37c14e4786e2 100644 (file)
@@ -178,7 +178,7 @@ int mutt_num_postponed(struct Mailbox *m, bool force)
     }
     else
       PostCount = ctx->mailbox->msg_count;
-    mx_fastclose_mailbox(ctx->mailbox);
+    mx_fastclose_mailbox(m_post);
     ctx_free(&ctx);
 #ifdef USE_NNTP
     if (optnews)