Only authenticate the auth once; if we're called again, let it fail, since
authorDan Winship <danw@src.gnome.org>
Mon, 4 Feb 2008 18:12:49 +0000 (18:12 +0000)
committerDan Winship <danw@src.gnome.org>
Mon, 4 Feb 2008 18:12:49 +0000 (18:12 +0000)
        * lib/e2k-context.c (session_authenticate): Only authenticate the
        auth once; if we're called again, let it fail, since the cached
        password must be incorrect. #513646.

svn path=/trunk/; revision=8454

servers/exchange/ChangeLog
servers/exchange/lib/e2k-context.c

index f1990ff..20a57a0 100644 (file)
@@ -1,3 +1,9 @@
+2008-02-04  Dan Winship  <danw@gnome.org>
+
+       * lib/e2k-context.c (session_authenticate): Only authenticate the
+       auth once; if we're called again, let it fail, since the cached
+       password must be incorrect. #513646.
+
 2008-01-30  Milan Crha  <mcrha@redhat.com>
 
        ** Part of fix for bug #395939
index f09a08d..42fe1d1 100644 (file)
@@ -338,8 +338,10 @@ session_authenticate (SoupSession *session, SoupMessage *msg,
 {
        E2kContext *ctx = user_data;
 
-       soup_auth_authenticate (auth, ctx->priv->username,
-                               ctx->priv->password);
+       if (!retrying) {
+               soup_auth_authenticate (auth, ctx->priv->username,
+                                       ctx->priv->password);
+       }
 }
 
 /**