]> granicus.if.org Git - neomutt/commitdiff
imap: check for null connection
authorPietro Cerutti <gahr@gahr.ch>
Fri, 26 Oct 2018 15:04:21 +0000 (15:04 +0000)
committerPietro Cerutti <gahr@gahr.ch>
Fri, 26 Oct 2018 15:08:57 +0000 (15:08 +0000)
imap/imap.c

index 0706558e933fcf26035cfa697d8de5f5ce84e952..f85336b3469137773f5d9b3bf83382f86438e624 100644 (file)
@@ -1442,7 +1442,7 @@ int imap_check_mailbox(struct Mailbox *m, bool force)
  */
 int imap_check(struct ImapAccountData *adata, bool force)
 {
-  if (!adata)
+  if (!adata || !adata->conn)
     return -1;
 
   /* overload keyboard timeout to avoid many mailbox checks in a row.