From f741e6b875862e9c0aa7520c1ec39bcf18c17c74 Mon Sep 17 00:00:00 2001 From: Mike Hallock Date: Tue, 28 Mar 2006 18:04:21 +0000 Subject: [PATCH] imap-fetch-mail should check that there is a Context before dereferencing Context->magic to avoid a segfault possibility. --- curs_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0