From: Thomas Roessler Date: Fri, 8 Sep 2000 21:52:04 +0000 (+0000) Subject: Brendan's version of the last fix. I put it in since he's most X-Git-Tag: mutt-1-3-9-rel~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2d7c494a5516babd90f1a7d7a3c215ce1b048f5;p=mutt Brendan's version of the last fix. I put it in since he's most likely the next one to look at or change this. ,-) --- diff --git a/imap/imap.c b/imap/imap.c index 0562019e..0ccf4b10 100644 --- a/imap/imap.c +++ b/imap/imap.c @@ -471,7 +471,7 @@ int imap_open_mailbox (CONTEXT* ctx) /* we require a connection which isn't currently in IMAP_SELECTED state */ if (!(idata = imap_conn_find (&(mx.account), M_IMAP_CONN_NOSELECT))) - goto fail; + goto fail_noidata; conn = idata->conn; /* once again the context is new */ @@ -622,9 +622,8 @@ int imap_open_mailbox (CONTEXT* ctx) return 0; fail: - if(idata) - idata->state = IMAP_AUTHENTICATED; - + idata->state = IMAP_AUTHENTICATED; + fail_noidata: FREE (&mx.mbox); return -1; }