Commit 7d1e3ebe authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

explain tld_check_name()

parent 9e61dfe8
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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 */