diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-11-12 06:09:32 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-11-12 06:09:32 +0800 |
commit | 725dc02affb727219a036f0f51edae33fa249263 (patch) | |
tree | 61b00f3796256b80e0743178d0984c1cc77ff678 /camel/providers | |
parent | 8a6262b715d8b9dbff51eb591b04327798ac8d78 (diff) | |
download | gsoc2013-evolution-725dc02affb727219a036f0f51edae33fa249263.tar.gz gsoc2013-evolution-725dc02affb727219a036f0f51edae33fa249263.tar.zst gsoc2013-evolution-725dc02affb727219a036f0f51edae33fa249263.zip |
Free the passwd here if we need to retry to authenticate.
2004-11-11 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-store.c (imap4_reconnect): Free the
passwd here if we need to retry to authenticate.
svn path=/trunk/; revision=27895
Diffstat (limited to 'camel/providers')
-rw-r--r-- | camel/providers/imap4/camel-imap4-store.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/camel/providers/imap4/camel-imap4-store.c b/camel/providers/imap4/camel-imap4-store.c index 890ff4797d..4d2395b049 100644 --- a/camel/providers/imap4/camel-imap4-store.c +++ b/camel/providers/imap4/camel-imap4-store.c @@ -45,6 +45,7 @@ #include "camel-imap4-summary.h" #include "camel-imap4-store-summary.h" +#define d(x) x static void camel_imap4_store_class_init (CamelIMAP4StoreClass *klass); static void camel_imap4_store_init (CamelIMAP4Store *store, CamelIMAP4StoreClass *klass); @@ -384,7 +385,7 @@ sasl_auth (CamelIMAP4Engine *engine, CamelIMAP4Command *ic, const unsigned char if (!(challenge = camel_sasl_challenge_base64 (sasl, (const char *) linebuf, ex))) return -1; - fprintf (stderr, "sending : %s\r\n", challenge); + d(fprintf (stderr, "sending : %s\r\n", challenge)); if (camel_stream_printf (engine->ostream, "%s\r\n", challenge) == -1) { g_free (challenge); @@ -496,6 +497,8 @@ imap4_reconnect (CamelIMAP4Engine *engine, CamelException *ex) g_free (errmsg); errmsg = g_strdup (lex.desc); camel_exception_clear (&lex); + g_free (service->url->passwd); + service->url->passwd = NULL; reprompt = TRUE; } g_free (errmsg); |