]> granicus.if.org Git - mutt/commitdiff
Fix a silly little IMAP bug. From Daniel Jacobowitz <dan@debian.org>.
authorThomas Roessler <roessler@does-not-exist.org>
Fri, 8 Sep 2000 18:52:09 +0000 (18:52 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Fri, 8 Sep 2000 18:52:09 +0000 (18:52 +0000)
imap/imap.c

index 323997221a5ec0d6c9b858cdde974ab96b9e6426..0562019ea4846e1aec9e27c4b1d83b565536fee4 100644 (file)
@@ -622,7 +622,9 @@ int imap_open_mailbox (CONTEXT* ctx)
   return 0;
 
  fail:
-  idata->state = IMAP_AUTHENTICATED;
+  if(idata)
+    idata->state = IMAP_AUTHENTICATED;
+
   FREE (&mx.mbox);
   return -1;
 }