diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-12-09 04:25:40 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2010-12-09 04:25:40 +0000 |
commit | 32ab28db8692bea71c0a3bb3238dce075052399e (patch) | |
tree | a35b32208f86a689c7e708fed01ea7f4318d6f61 /src | |
parent | a29ad00ed3ce3d185b152eacb913442150ba9f32 (diff) |
fixed a bug that temporary password was not cleared on SMTP auth failure.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2745 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/send_message.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/send_message.c b/src/send_message.c index 86e21260..3ecbb876 100644 --- a/src/send_message.c +++ b/src/send_message.c @@ -766,6 +766,9 @@ static gint send_message_smtp(PrefsAccount *ac_prefs, GSList *to_list, FILE *fp) if (ac_prefs->smtp_userid && ac_prefs->tmp_smtp_pass) { g_free(ac_prefs->tmp_smtp_pass); ac_prefs->tmp_smtp_pass = NULL; + } else if (!ac_prefs->smtp_userid && ac_prefs->tmp_pass) { + g_free(ac_prefs->tmp_pass); + ac_prefs->tmp_pass = NULL; } ret = -1; } else if (session->state == SESSION_EOF && |