details
authorPierre Habouzit <madcoder@madism.org>
Sat, 18 Nov 2006 20:58:29 +0000 (21:58 +0100)
committerPierre Habouzit <madcoder@madism.org>
Sat, 18 Nov 2006 20:58:29 +0000 (21:58 +0100)
Signed-off-by: Pierre Habouzit <madcoder@madism.org>
account.c
imap/imap.c

index c9ac175..7838827 100644 (file)
--- a/account.c
+++ b/account.c
@@ -206,5 +206,5 @@ int mutt_account_getpass (ACCOUNT * account)
 
 void mutt_account_unsetpass (ACCOUNT * account)
 {
-    account->flags &= !M_ACCT_PASS;
+    account->flags &= ~M_ACCT_PASS;
 }
index a180ac1..4b557fe 100644 (file)
@@ -347,9 +347,9 @@ IMAP_DATA *imap_conn_find (const ACCOUNT * account, int flags)
   if (idata->state == IMAP_CONNECTED) {
     if (!imap_authenticate (idata)) {
       idata->state = IMAP_AUTHENTICATED;
-    }
-    else
+    } else {
       mutt_account_unsetpass (&idata->conn->account);
+    }
 
     p_delete(&idata->capstr);
   }