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 17:49:05 +0200
commit5ce44fd95382b03b3939998f777e7ef27fee223f (patch)
tree109834e4ccff669a057982ff3ac1eb7da2343d33 /lib/http_proxy.c
parent6d930d730600771f15ab048a123f253ce4751786 (diff)
downloadcurl-bagder/proxy-credential-loop.tar.gz
http_proxy: only loop on 407 + close if we have credentialsbagder/proxy-credential-loop
... 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;