Browse code

Fixed issue where bad creds provided by the management interface for HTTP Proxy Basic Authentication would go into an infinite retry-fail loop instead of requerying the management interface for new creds.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@5701 e7ae566f-a301-0410-adde-c780ea21d3b5

James Yonan authored on 2010/06/10 12:17:21
Showing 2 changed files
... ...
@@ -620,8 +620,11 @@ establish_http_proxy_passthru (struct http_proxy_info *p,
620 620
     {
621 621
       msg (D_PROXY, "Proxy requires authentication");
622 622
 
623
-      /* check for NTLM */
624
-      if ((p->auth_method == HTTP_AUTH_NTLM || p->auth_method == HTTP_AUTH_NTLM2) && !processed)
623
+      if (p->auth_method == HTTP_AUTH_BASIC && !processed)
624
+	{
625
+	  processed = true;
626
+	}
627
+      else if ((p->auth_method == HTTP_AUTH_NTLM || p->auth_method == HTTP_AUTH_NTLM2) && !processed) /* check for NTLM */
625 628
         {
626 629
 #if NTLM
627 630
           /* look for the phase 2 response */
... ...
@@ -1,5 +1,5 @@
1 1
 dnl define the OpenVPN version
2
-define(PRODUCT_VERSION,[2.1.1i])
2
+define(PRODUCT_VERSION,[2.1.1j])
3 3
 dnl define the TAP version
4 4
 define(PRODUCT_TAP_ID,[tap0901])
5 5
 define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9])