From: Pietro Cerutti Date: Fri, 26 Oct 2018 15:04:21 +0000 (+0000) Subject: imap: check for null connection X-Git-Tag: 2019-10-25~589 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=68382cc1eeb2aafcd39c13facfa5a59051576393;p=neomutt imap: check for null connection --- diff --git a/imap/imap.c b/imap/imap.c index 0706558e9..f85336b34 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -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.