Lines Matching refs:hostp
372 resolve_canonicalize(char **hostp, int port)
392 if ((addrs = resolve_addr(*hostp, port,
394 debug2("%s: hostname %.100s is address", __func__, *hostp);
395 if (strcasecmp(*hostp, newname) != 0) {
397 __func__, *hostp, newname);
398 free(*hostp);
399 *hostp = xstrdup(newname);
405 if ((*hostp)[strlen(*hostp) - 1] == '.') {
407 fullhost = xstrdup(*hostp);
417 for (cp = *hostp; *cp != '\0'; cp++) {
423 __func__, *hostp, options.canonicalize_max_dots);
429 xasprintf(&fullhost, "%s.%s.", *hostp,
432 *hostp, fullhost);
444 *hostp, fullhost);
446 free(*hostp);
447 *hostp = fullhost;
452 fatal("%s: Could not resolve host \"%s\"", __progname, *hostp);
453 debug2("%s: host %s not found in any suffix", __func__, *hostp);