From: Mike Hallock Date: Tue, 28 Mar 2006 18:04:21 +0000 (+0000) Subject: imap-fetch-mail should check that there is a Context before dereferencing X-Git-Tag: mutt-1-5-12-rel~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f741e6b875862e9c0aa7520c1ec39bcf18c17c74;p=mutt imap-fetch-mail should check that there is a Context before dereferencing Context->magic to avoid a segfault possibility. --- diff --git a/curs_main.c b/curs_main.c index 01c45db5..c8f99fda 100644 --- a/curs_main.c +++ b/curs_main.c @@ -997,7 +997,7 @@ CHECK_IMAP_ACL(IMAP_ACL_DELETE); #ifdef USE_IMAP case OP_MAIN_IMAP_FETCH: - if (Context->magic == M_IMAP) + if (Context && Context->magic == M_IMAP) imap_check_mailbox (Context, &index_hint, 1); break; #endif