summaryrefslogtreecommitdiffstats
path: root/account.c
diff options
context:
space:
mode:
authorBrendan Cully <brendan@kublai.com>2003-07-16 11:18:12 +0000
committerBrendan Cully <brendan@kublai.com>2003-07-16 11:18:12 +0000
commit2a53140af4747cfe9346e82b6ac20ab287ea9dda (patch)
tree9f5a2f087429c8c278a1b86e87d1f00fe8fe5d17 /account.c
parent27594530fa18993e805b363790f3ec56d100de74 (diff)
I noticed that my mutt hung when I tried SASL DIGEST-MD5
authentication (I'm not sure when this started). I believe this patch should solve that problem in a reliable way. This patch also attempts to reuse connections even when authentication fails, instead of just throwing away a perfectly good socket.
Diffstat (limited to 'account.c')
-rw-r--r--account.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/account.c b/account.c
index 3fda792b..4f0ed881 100644
--- a/account.c
+++ b/account.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2000 Brendan Cully <brendan@kublai.com>
+ * Copyright (C) 2000-3 Brendan Cully <brendan@kublai.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -180,3 +180,8 @@ int mutt_account_getpass (ACCOUNT* account)
return 0;
}
+
+void mutt_account_unsetpass (ACCOUNT* account)
+{
+ account->flags &= !M_ACCT_PASS;
+}