aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-08-30 12:21:22 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-08-30 12:21:22 +0800
commitc49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a (patch)
treef4a455f9c8a0c839244e0373b1e42eeb4c7fe230 /camel
parent8203e714805181106a41fdc88fc4a26a36481232 (diff)
downloadgsoc2013-evolution-c49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a.tar
gsoc2013-evolution-c49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a.tar.gz
gsoc2013-evolution-c49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a.tar.bz2
gsoc2013-evolution-c49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a.tar.lz
gsoc2013-evolution-c49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a.tar.xz
gsoc2013-evolution-c49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a.tar.zst
gsoc2013-evolution-c49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a.zip
** See bug #64023.
2004-08-27 Not Zed <NotZed@Ximian.com> ** See bug #64023. * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate): forget the password if it was wrong. svn path=/trunk/; revision=27071
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog7
-rw-r--r--camel/providers/nntp/camel-nntp-store.c5
2 files changed, 11 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index f8c5bef0eb..d121d35a1d 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,10 @@
+2004-08-27 Not Zed <NotZed@Ximian.com>
+
+ ** See bug #64023.
+
+ * providers/nntp/camel-nntp-store.c (camel_nntp_try_authenticate):
+ forget the password if it was wrong.
+
2004-08-26 Sivaiah Nallagatla <snallagatla@novell.com>
* provoders/groupwise/camel-gw-listner.c
diff --git a/camel/providers/nntp/camel-nntp-store.c b/camel/providers/nntp/camel-nntp-store.c
index d46ddeb93b..31048e7a12 100644
--- a/camel/providers/nntp/camel-nntp-store.c
+++ b/camel/providers/nntp/camel-nntp-store.c
@@ -1141,9 +1141,12 @@ camel_nntp_try_authenticate (CamelNNTPStore *store, CamelException *ex)
ret = camel_nntp_raw_command(store, ex, &line, "authinfo pass %s", service->url->passwd);
if (ret != NNTP_AUTH_ACCEPTED) {
- if (ret != -1)
+ if (ret != -1) {
+ /* Need to forget the password here since we have no context on it */
+ camel_session_forget_password(session, service, NULL, "password", ex);
camel_exception_setv(ex, CAMEL_EXCEPTION_SERVICE_CANT_AUTHENTICATE,
_("Cannot authenticate to server: %s"), line);
+ }
return -1;
}