mirror of
https://github.com/curl/curl.git
synced 2026-07-24 09:27:23 +03:00
parent
6fe4e7d3bf
commit
d55b8b6a45
1 changed files with 5 additions and 0 deletions
|
|
@ -2397,6 +2397,11 @@ static CURLcode parse_proxy(struct Curl_easy *data,
|
|||
CURLcode result = CURLE_OK;
|
||||
char *scheme = NULL;
|
||||
|
||||
if(!uhp) {
|
||||
result = CURLE_OUT_OF_MEMORY;
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* When parsing the proxy, allowing non-supported schemes since we have
|
||||
these made up ones for proxies. Guess scheme for URLs without it. */
|
||||
uc = curl_url_set(uhp, CURLUPART_URL, proxy,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue