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 | |
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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/send_message.c | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2010-12-09 + * src/send_message.c: send_message_smtp(): fixed a bug that + temporary password was not cleared on auth failure. + +2010-12-09 + * src/plugin.h: fixed typo. * src/update_check.c: update_check(): win32: fixed crash on update check. 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 && |