diff options
author | James Yonan <james@openvpn.net> | 2010-06-10 03:17:21 +0000 |
---|---|---|
committer | James Yonan <james@openvpn.net> | 2010-06-10 03:17:21 +0000 |
commit | d222fcc587de09da0cb4681526e56b944313b22f (patch) | |
tree | d9c56e7688df37c1de9fbdc8284f9dd66eb74a48 /proxy.c | |
parent | Implemented a key/value auth channel from client to server. (diff) | |
download | openvpn-d222fcc587de09da0cb4681526e56b944313b22f.tar.xz |
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
Diffstat (limited to '')
-rw-r--r-- | proxy.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 */ |