separate find_fqdn

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10303 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-07-09 15:14:19 +00:00
parent adfd040a69
commit 130be40de4
3 changed files with 63 additions and 24 deletions

View File

@@ -56,7 +56,7 @@ doit (int af,
addrlen,
af);
if (he != NULL) {
strlcpy (host, he->h_name, hostlen);
strlcpy (host, hostent_find_fqdn(he), hostlen);
if (flags & NI_NOFQDN) {
char *dot = strchr (host, '.');
if (dot != NULL)