/* 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);