summaryrefslogtreecommitdiff
path: root/lib/http_proxy.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-04-05 12:11:30 +0200
committerDaniel Stenberg <daniel@haxx.se>2021-04-05 22:49:07 +0200
commit605aa03ac198e049e6779df5ccc433b0934e40aa (patch)
tree932cb9de4f2e5ff0b4c85b15fb9c490ca5525c7b /lib/http_proxy.c
parent00b89ec641289e5ee8422daf44a77cde5791f01d (diff)
downloadcurl-605aa03ac198e049e6779df5ccc433b0934e40aa.tar.gz
http_proxy: only loop on 407 + close if we have credentials
... to fix the retry-loop. Add test 718 to verify. Reported-by: Daniel Kurečka Fixes #6828 Closes #6850
Diffstat (limited to 'lib/http_proxy.c')
-rw-r--r--lib/http_proxy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/http_proxy.c b/lib/http_proxy.c
index 732fea7e3..f403ffc0e 100644
--- a/lib/http_proxy.c
+++ b/lib/http_proxy.c
@@ -358,7 +358,8 @@ static CURLcode CONNECT(struct Curl_easy *data,
break;
}
else if(gotbytes <= 0) {
- if(data->set.proxyauth && data->state.authproxy.avail) {
+ if(data->set.proxyauth && data->state.authproxy.avail &&
+ data->state.aptr.proxyuserpwd) {
/* proxy auth was requested and there was proxy auth available,
then deem this as "mere" proxy disconnect */
conn->bits.proxy_connect_closed = TRUE;