From: Michael Elkins Date: Fri, 16 Mar 2007 18:21:59 +0000 (-0700) Subject: Fixed segfault when attempting to open an imaps mailbox when mutt is not configured... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=553ce543256ef92e4732e02f7c23384c2c26649e;p=neomutt Fixed segfault when attempting to open an imaps mailbox when mutt is not configured with SSL support. --- diff --git a/imap/imap.c b/imap/imap.c index ab8aad152..dba1ef91d 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -343,6 +343,8 @@ IMAP_DATA* imap_conn_find (const ACCOUNT* account, int flags) continue; break; } + if (!conn) + return NULL; /* this happens when the initial connection fails */ if (!idata) {