Skip to content

Commit

Permalink
url: enumerated type mixed with another type
Browse files Browse the repository at this point in the history
Follow-up to 1c58e7ae99ce2030213f28b

Closes curl#9179
  • Loading branch information
bagder committed Jul 23, 2022
1 parent 8cd57d6 commit 3be0c67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/url.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3be0c67

Please sign in to comment.