mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
url: use blank credentials when using proxy w/o username and password
Fixes proxy regression brought in commit ad829b21ae
(7.71.0)
Fixed #5911
Closes #5914
This commit is contained in:
parent
6f42e3b169
commit
3532262edd
@ -2379,8 +2379,10 @@ static CURLcode parse_proxy(struct Curl_easy *data,
|
||||
static CURLcode parse_proxy_auth(struct Curl_easy *data,
|
||||
struct connectdata *conn)
|
||||
{
|
||||
char *proxyuser = data->set.str[STRING_PROXYUSERNAME];
|
||||
char *proxypasswd = data->set.str[STRING_PROXYPASSWORD];
|
||||
const char *proxyuser = data->set.str[STRING_PROXYUSERNAME] ?
|
||||
data->set.str[STRING_PROXYUSERNAME] : "";
|
||||
const char *proxypasswd = data->set.str[STRING_PROXYPASSWORD] ?
|
||||
data->set.str[STRING_PROXYPASSWORD] : "";
|
||||
CURLcode result = CURLE_OK;
|
||||
|
||||
if(proxyuser)
|
||||
|
Loading…
Reference in New Issue
Block a user