diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-03-17 03:57:34 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-03-17 03:57:34 +0000 |
commit | c293f9bc63423df702e38a0bf94378f063e5d293 (patch) | |
tree | 4a05120586b83d75d9b2fc32e926f1d90dd63813 /nss | |
parent | 24ea71e942d6c4aaf6577f6fca7b4c4968a34565 (diff) | |
download | glibc-c293f9bc63423df702e38a0bf94378f063e5d293.tar.gz |
(_nss_files_gethostbyname2_r): New functions. Compare result for
correct address type.
Diffstat (limited to 'nss')
-rw-r--r-- | nss/nss_files/files-hosts.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nss/nss_files/files-hosts.c b/nss/nss_files/files-hosts.c index e26d3fa03b..d6dd6daea7 100644 --- a/nss/nss_files/files-hosts.c +++ b/nss/nss_files/files-hosts.c @@ -98,6 +98,13 @@ DB_LOOKUP (hostbyname, ,, LOOKUP_NAME (h_name, h_aliases), const char *name) +DB_LOOKUP (hostbyname2, ,, + { + if (result->h_addrtype != af) + continue; + LOOKUP_NAME (h_name, h_aliases) + }, const char *name, int af) + DB_LOOKUP (hostbyaddr, ,, { if (result->h_addrtype == type && result->h_length == len && |