diff options
-rw-r--r-- | camel/ChangeLog | 7 | ||||
-rw-r--r-- | camel/providers/nntp/camel-nntp-store.c | 5 |
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; } |