Curl_safefree(conn->oauth_bearer);
Curl_safefree(conn->host.rawalloc); /* hostname buffer */
Curl_safefree(conn->conn_to_host.rawalloc); /* hostname buffer */
- Curl_safefree(conn->hostname_resolve);
Curl_safefree(conn->secondaryhostname);
Curl_safefree(conn->localdev);
Curl_ssl_conn_config_cleanup(conn);
eport = conn->bits.conn_to_port ? conn->conn_to_port : conn->remote_port;
}
- /* Resolve target host right on */
- conn->hostname_resolve = curlx_strdup(ehost->name);
- if(!conn->hostname_resolve)
- return CURLE_OUT_OF_MEMORY;
-
- result = Curl_resolv_timeout(data, conn->hostname_resolve,
+ result = Curl_resolv_timeout(data, ehost->name,
eport, conn->ip_version,
pdns, timeout_ms);
DEBUGASSERT(!result || !*pdns);
conn->conn_to_port = needle->conn_to_port;
conn->remote_port = needle->remote_port;
- curlx_free(conn->hostname_resolve);
- conn->hostname_resolve = needle->hostname_resolve;
- needle->hostname_resolve = NULL;
}
static void conn_meta_freeentry(void *p)
struct Curl_hash meta_hash;
struct hostname host;
- char *hostname_resolve; /* hostname to resolve to address, allocated */
char *secondaryhostname; /* secondary socket hostname (ftp) */
struct hostname conn_to_host; /* the host to connect to. valid only if
bits.conn_to_host is set */