mirror of https://github.com/moparisthebest/curl
explain tld_check_name()
This commit is contained in:
parent
9e61dfe85e
commit
7d1e3ebeed
|
@ -2245,7 +2245,9 @@ static void fix_hostname(struct connectdata *conn, struct hostname *host)
|
||||||
infof(data, "Failed to convert %s to ACE; %s\n",
|
infof(data, "Failed to convert %s to ACE; %s\n",
|
||||||
host->name, Curl_idn_strerror(conn,rc));
|
host->name, Curl_idn_strerror(conn,rc));
|
||||||
else {
|
else {
|
||||||
tld_check_name(data, ace_hostname);
|
/* tld_check_name() displays a warning if the host name contains
|
||||||
|
"illegal" characters for this TLD */
|
||||||
|
(void)tld_check_name(data, ace_hostname);
|
||||||
|
|
||||||
host->encalloc = ace_hostname;
|
host->encalloc = ace_hostname;
|
||||||
/* change the name pointer to point to the encoded hostname */
|
/* change the name pointer to point to the encoded hostname */
|
||||||
|
|
Loading…
Reference in New Issue