aboutsummaryrefslogtreecommitdiff
path: root/src/send_message.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-12-09 04:25:40 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2010-12-09 04:25:40 +0000
commit32ab28db8692bea71c0a3bb3238dce075052399e (patch)
treea35b32208f86a689c7e708fed01ea7f4318d6f61 /src/send_message.c
parenta29ad00ed3ce3d185b152eacb913442150ba9f32 (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/send_message.c')
-rw-r--r--src/send_message.c3
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 &&