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-Tag: mutt-1-5-15-rel~47^2~18^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d44be39f7350f132ece802cc0e8e6c6b989fe5ae;p=mutt 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 ab8aad15..dba1ef91 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) {