mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
url: enumerated type mixed with another type
Follow-up to 1c58e7ae99ce2030213f28b Closes #9179
This commit is contained in:
parent
8cd57d6e39
commit
3be0c67379
@ -2735,16 +2735,16 @@ static CURLcode create_conn_helper_init_proxy(struct Curl_easy *data,
|
||||
* connection that may exist registered to the same proxy host.
|
||||
***********************************************************************/
|
||||
if(proxy || socksproxy) {
|
||||
curl_proxytype ptype = (curl_proxytype)conn->http_proxy.proxytype;
|
||||
if(proxy) {
|
||||
result = parse_proxy(data, conn, proxy, conn->http_proxy.proxytype);
|
||||
result = parse_proxy(data, conn, proxy, ptype);
|
||||
Curl_safefree(proxy); /* parse_proxy copies the proxy string */
|
||||
if(result)
|
||||
goto out;
|
||||
}
|
||||
|
||||
if(socksproxy) {
|
||||
result = parse_proxy(data, conn, socksproxy,
|
||||
conn->socks_proxy.proxytype);
|
||||
result = parse_proxy(data, conn, socksproxy, ptype);
|
||||
/* parse_proxy copies the socks proxy string */
|
||||
Curl_safefree(socksproxy);
|
||||
if(result)
|
||||
|
Loading…
Reference in New Issue
Block a user