]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fixed issue where bad creds provided by the management interface
authorJames Yonan <james@openvpn.net>
Thu, 10 Jun 2010 03:17:21 +0000 (03:17 +0000)
committerJames Yonan <james@openvpn.net>
Thu, 10 Jun 2010 03:17:21 +0000 (03:17 +0000)
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

proxy.c
version.m4

diff --git a/proxy.c b/proxy.c
index ac3fc65ff03ab8c2ee5b216d11b5fec0fa6445db..3de2ac1a2317aeace347ab0f53c954974845ddad 100644 (file)
--- a/proxy.c
+++ b/proxy.c
@@ -620,8 +620,11 @@ establish_http_proxy_passthru (struct http_proxy_info *p,
     {
       msg (D_PROXY, "Proxy requires authentication");
 
-      /* check for NTLM */
-      if ((p->auth_method == HTTP_AUTH_NTLM || p->auth_method == HTTP_AUTH_NTLM2) && !processed)
+      if (p->auth_method == HTTP_AUTH_BASIC && !processed)
+       {
+         processed = true;
+       }
+      else if ((p->auth_method == HTTP_AUTH_NTLM || p->auth_method == HTTP_AUTH_NTLM2) && !processed) /* check for NTLM */
         {
 #if NTLM
           /* look for the phase 2 response */
index 8df30d5b08b43ed2c9ad9519df1befeb6184d73f..02d8e71019bd7489ff1e37fbc514a9d177495ed3 100644 (file)
@@ -1,5 +1,5 @@
 dnl define the OpenVPN version
-define(PRODUCT_VERSION,[2.1.1i])
+define(PRODUCT_VERSION,[2.1.1j])
 dnl define the TAP version
 define(PRODUCT_TAP_ID,[tap0901])
 define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9])