version 1.520, 2020/02/18 08:49:49 |
version 1.521, 2020/03/06 18:20:02 |
|
|
|
|
if (port <= 0) |
if (port <= 0) |
port = default_ssh_port(); |
port = default_ssh_port(); |
|
if (cname != NULL) |
|
*cname = '\0'; |
|
|
snprintf(strport, sizeof strport, "%d", port); |
snprintf(strport, sizeof strport, "%d", port); |
memset(&hints, 0, sizeof(hints)); |
memset(&hints, 0, sizeof(hints)); |
|
|
} |
} |
/* Attempt each supplied suffix */ |
/* Attempt each supplied suffix */ |
for (i = 0; i < options.num_canonical_domains; i++) { |
for (i = 0; i < options.num_canonical_domains; i++) { |
*newname = '\0'; |
|
xasprintf(&fullhost, "%s.%s.", *hostp, |
xasprintf(&fullhost, "%s.%s.", *hostp, |
options.canonical_domains[i]); |
options.canonical_domains[i]); |
debug3("%s: attempting \"%s\" => \"%s\"", __func__, |
debug3("%s: attempting \"%s\" => \"%s\"", __func__, |