diff options
author | Milan Crha <mcrha@redhat.com> | 2010-12-15 22:53:03 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2010-12-15 22:53:03 +0800 |
commit | 01bff4baf00559f9cc6b3b78f7fd03a22d6ed327 (patch) | |
tree | 7041ac6fc401b3b76eefccdbec7fdc93a365f01b /mail/e-mail-session.c | |
parent | a6bce7b74b99cd8ade8280ca52fb968438e6bf78 (diff) | |
download | gsoc2013-evolution-01bff4baf00559f9cc6b3b78f7fd03a22d6ed327.tar.gz gsoc2013-evolution-01bff4baf00559f9cc6b3b78f7fd03a22d6ed327.tar.zst gsoc2013-evolution-01bff4baf00559f9cc6b3b78f7fd03a22d6ed327.zip |
Bug #634385 - Crash in smtp_connect
Diffstat (limited to 'mail/e-mail-session.c')
-rw-r--r-- | mail/e-mail-session.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c index debaf28cea..68d553e97d 100644 --- a/mail/e-mail-session.c +++ b/mail/e-mail-session.c @@ -626,6 +626,9 @@ mail_session_get_password (CamelSession *session, if (ret == NULL || (flags & CAMEL_SESSION_PASSWORD_REPROMPT)) { gboolean remember; + g_free (ret); + ret = NULL; + if (url) { if ((account = e_get_account_by_source_url (url))) config_service = account->source; @@ -674,6 +677,9 @@ mail_session_get_password (CamelSession *session, ret = e_passwords_ask_password (title, domain, key, prompt, eflags, &remember, NULL); + if (!ret) + e_passwords_forget_password (domain, key); + g_free (title); if (ret && config_service) |