From 33dbe6a01d89aca58cc85244fb52d28103250e5c Mon Sep 17 00:00:00 2001 From: Jean-Christophe Collet Date: Fri, 26 Jun 2009 16:50:58 +0200 Subject: [PATCH] 6855297: Windows build breaks after 6811297 Re-introduced the mistakenly taken out authObj member Reviewed-by: chegar --- .../classes/sun/net/www/protocol/http/HttpURLConnection.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java b/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java index 5e28654b950..afd35f0d72e 100644 --- a/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java +++ b/jdk/src/share/classes/sun/net/www/protocol/http/HttpURLConnection.java @@ -237,6 +237,8 @@ public class HttpURLConnection extends java.net.HttpURLConnection { /* try auth without calling Authenticator */ private boolean tryTransparentNTLMServer = NTLMAuthentication.supportsTransparentAuth(); private boolean tryTransparentNTLMProxy = NTLMAuthentication.supportsTransparentAuth(); + /* Used by Windows specific code */ + Object authObj; /* Set if the user is manually setting the Authorization or Proxy-Authorization headers */ boolean isUserServerAuth; @@ -1219,6 +1221,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection { disconnectInternal (); throw new IOException ("Authentication failure"); } + authObj = null; doingNTLMp2ndStage = false; continue; } @@ -1295,6 +1298,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection { throw new IOException ("Authentication failure"); } doingNTLM2ndStage = false; + authObj = null; setCookieHeader(); continue; } @@ -1646,6 +1650,7 @@ public class HttpURLConnection extends java.net.HttpURLConnection { disconnectInternal(); throw new IOException ("Authentication failure"); } + authObj = null; doingNTLMp2ndStage = false; continue; }