aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-11-09 09:26:03 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-11-09 09:26:03 +0000
commitce71581001a5f29fd14a21aba44e38bdc5787275 (patch)
treedb9620c291a9ff5ac799011e8cc61e5c12b3d1dc /src
parent31dc15362cf0392b6444bb5c6fb3f3d6819a24d0 (diff)
clear temporary password if authentication fails.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2714 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/rpop3.c7
1 files changed, 7 insertions, 0 deletions
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();