]> granicus.if.org Git - mutt/commitdiff
Guard idata->mailbox read in imap_mailbox_state. Closes #3057.
authorRocco Rutte <pdmef@gmx.net>
Thu, 22 May 2008 06:20:23 +0000 (23:20 -0700)
committerRocco Rutte <pdmef@gmx.net>
Thu, 22 May 2008 06:20:23 +0000 (23:20 -0700)
imap/browse.c

index 750a65dacc1ba0f7f7fd1bbdcb03302541b1f575..91ad31dd231200b8da44dd2399810fd9e37493f7 100644 (file)
@@ -228,7 +228,7 @@ int imap_mailbox_state (const char* path, struct mailbox_state* state)
     return -1;
   }
 
-  if (!imap_mxcmp(mx.mbox, idata->mailbox))
+  if (idata->ctx && !imap_mxcmp(mx.mbox, idata->mailbox))
   {
     state->new = idata->ctx->new;
     state->messages = idata->ctx->msgcount;