aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/rpop3.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 55cc03bf..52ae36b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-09
+
+ * src/rpop3.c: rpop3_account(): clear temporary password if
+ authentication fails.
+
2010-11-05
* src/update_check.c
diff --git a/src/rpop3.c b/src/rpop3.c
index edb2d183..001b9702 100644
--- a/src/rpop3.c
+++ b/src/rpop3.c
@@ -298,6 +298,13 @@ gint rpop3_account(PrefsAccount *account)
while (!rpop3_window.finished)
gtk_main_iteration();
+ if (POP3_SESSION(session)->error_val == PS_AUTHFAIL &&
+ account->tmp_pass) {
+ debug_print("rpop3_account: remove temporary password because of authentication failure\n");
+ g_free(account->tmp_pass);
+ account->tmp_pass = NULL;
+ }
+
rpop3_idle(FALSE);
session_destroy(session);
rpop3_clear_list();