diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-11-09 09:26:03 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-11-09 09:26:03 +0000 |
commit | ce71581001a5f29fd14a21aba44e38bdc5787275 (patch) | |
tree | db9620c291a9ff5ac799011e8cc61e5c12b3d1dc | |
parent | 31dc15362cf0392b6444bb5c6fb3f3d6819a24d0 (diff) |
clear temporary password if authentication fails.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2714 ee746299-78ed-0310-b773-934348b2243d
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/rpop3.c | 7 |
2 files changed, 12 insertions, 0 deletions
@@ -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(); |