From c49d8da3ae22eb5ebfc0760cf2d37cb3c29f434a Mon Sep 17 00:00:00 2001 From: Not Zed Date: Mon, 30 Aug 2004 04:21:22 +0000 Subject: ** See bug #64023. 2004-08-27 Not Zed ** 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 --- camel/ChangeLog | 7 +++++++ camel/providers/nntp/camel-nntp-store.c | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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 + + ** 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 * 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; } -- cgit v1.2.3