From d679a9ea8dca05dc3e3e066a17d4e64338150aff Mon Sep 17 00:00:00 2001 From: Rocco Rutte Date: Wed, 21 May 2008 23:20:23 -0700 Subject: [PATCH] Guard idata->mailbox read in imap_mailbox_state. Closes #3057. --- imap/browse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap/browse.c b/imap/browse.c index 750a65da..91ad31dd 100644 --- a/imap/browse.c +++ b/imap/browse.c @@ -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; -- 2.40.0