From 725dc02affb727219a036f0f51edae33fa249263 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 11 Nov 2004 22:09:32 +0000 Subject: Free the passwd here if we need to retry to authenticate. 2004-11-11 Jeffrey Stedfast * providers/imap4/camel-imap4-store.c (imap4_reconnect): Free the passwd here if we need to retry to authenticate. svn path=/trunk/; revision=27895 --- camel/providers/imap4/camel-imap4-store.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'camel/providers') 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); -- cgit v1.2.3