explain tld_check_name()

This commit is contained in:
Daniel Stenberg 2005-12-20 22:46:12 +00:00
parent 9e61dfe85e
commit 7d1e3ebeed
1 changed files with 6 additions and 4 deletions

View File

@ -2245,7 +2245,9 @@ static void fix_hostname(struct connectdata *conn, struct hostname *host)
infof(data, "Failed to convert %s to ACE; %s\n",
host->name, Curl_idn_strerror(conn,rc));
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;
/* change the name pointer to point to the encoded hostname */