aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@novell.com>2004-11-12 06:09:32 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-11-12 06:09:32 +0800
commit725dc02affb727219a036f0f51edae33fa249263 (patch)
tree61b00f3796256b80e0743178d0984c1cc77ff678 /camel
parent8a6262b715d8b9dbff51eb591b04327798ac8d78 (diff)
downloadgsoc2013-evolution-725dc02affb727219a036f0f51edae33fa249263.tar
gsoc2013-evolution-725dc02affb727219a036f0f51edae33fa249263.tar.gz
gsoc2013-evolution-725dc02affb727219a036f0f51edae33fa249263.tar.bz2
gsoc2013-evolution-725dc02affb727219a036f0f51edae33fa249263.tar.lz
gsoc2013-evolution-725dc02affb727219a036f0f51edae33fa249263.tar.xz
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')
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/providers/imap4/camel-imap4-store.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6b85e40f91..0ca4b09edc 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2004-11-10 Jeffrey Stedfast <fejj@novell.com>
* providers/imap4/camel-imap4-summary.c (imap4_summary_fetch_all):
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);