diff options
author | Shohei Maeda <11495867+smaeda-ks@users.noreply.github.com> | 2023-05-12 21:06:26 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-05-12 17:52:07 +0200 |
commit | ac5ad5214261a2237bdbe344708f9d32c9393fd6 (patch) | |
tree | b5783846c17ad7ac5cf3d8ad3ca4a9f14d0397ec | |
parent | efa6c644aaee965e8aee279fac9d9fbc3eaa70d8 (diff) | |
download | curl-ac5ad5214261a2237bdbe344708f9d32c9393fd6.tar.gz |
url: fix null dispname for --connect-to option
Closes #11106
-rw-r--r-- | lib/url.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1816,11 +1816,6 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data, result = Curl_idnconvert_hostname(&conn->host); if(result) return result; - if(conn->bits.conn_to_host) { - result = Curl_idnconvert_hostname(&conn->conn_to_host); - if(result) - return result; - } #ifndef CURL_DISABLE_HSTS /* HSTS upgrade */ @@ -3480,6 +3475,11 @@ static CURLcode create_conn(struct Curl_easy *data, return result; } #endif + if(conn->bits.conn_to_host) { + result = Curl_idnconvert_hostname(&conn->conn_to_host); + if(result) + return result; + } /************************************************************* * Check whether the host and the "connect to host" are equal. |