]> granicus.if.org Git - neomutt/commitdiff
Fix segfault when checking a mailbox after a disconnect (II)
authorPietro Cerutti <gahr@gahr.ch>
Fri, 21 Sep 2018 12:15:26 +0000 (12:15 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Fri, 21 Sep 2018 12:15:26 +0000 (12:15 +0000)
curs_main.c

index 90cba585e4a55dc435d9824bdbd866393527c7d9..505ca82ee2614c53b7bb61285e5715e410f0f119 100644 (file)
@@ -1049,7 +1049,7 @@ int mutt_index_menu(void)
       check = mx_mbox_check(Context, &index_hint);
       if (check < 0)
       {
-        if (Context->mailbox->path[0] == '\0')
+        if (!Context->mailbox || Context->mailbox->path[0] == '\0')
         {
           /* fatal error occurred */
           mutt_context_free(&Context);