mirror of
https://github.com/curl/curl.git
synced 2026-07-23 16:17:21 +03:00
parent
41931f1659
commit
cffc912844
1 changed files with 6 additions and 2 deletions
|
|
@ -2250,11 +2250,15 @@ static CURLcode parse_proxy(struct Curl_easy *data,
|
|||
|
||||
/* Is there a username and password given in this proxy url? */
|
||||
uc = curl_url_get(uhp, CURLUPART_USER, &proxyuser, CURLU_URLDECODE);
|
||||
if(uc && (uc != CURLUE_NO_USER))
|
||||
if(uc && (uc != CURLUE_NO_USER)) {
|
||||
result = Curl_uc_to_curlcode(uc);
|
||||
goto error;
|
||||
}
|
||||
uc = curl_url_get(uhp, CURLUPART_PASSWORD, &proxypasswd, CURLU_URLDECODE);
|
||||
if(uc && (uc != CURLUE_NO_PASSWORD))
|
||||
if(uc && (uc != CURLUE_NO_PASSWORD)) {
|
||||
result = Curl_uc_to_curlcode(uc);
|
||||
goto error;
|
||||
}
|
||||
|
||||
if(proxyuser || proxypasswd) {
|
||||
curlx_free(proxyinfo->user);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue