diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-10-24 23:02:46 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-10-24 23:02:46 +0000 |
commit | 78d8d2117bcb9b5926a2af189bdf4bced4deb982 (patch) | |
tree | ddeec0fe0916bc5a66a9a55c67e5532730382021 /resolv/nss_dns/dns-host.c | |
parent | b31b32b3aa92bfe3184eece0ef108181de52f06c (diff) | |
download | glibc-78d8d2117bcb9b5926a2af189bdf4bced4deb982.tar.gz |
Update.
* resolv/nss_dns/dns-host.c: Avoid using PLTs.
Diffstat (limited to 'resolv/nss_dns/dns-host.c')
-rw-r--r-- | resolv/nss_dns/dns-host.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/resolv/nss_dns/dns-host.c b/resolv/nss_dns/dns-host.c index f6a2fa65d6..7045c5915b 100644 --- a/resolv/nss_dns/dns-host.c +++ b/resolv/nss_dns/dns-host.c @@ -127,6 +127,14 @@ static enum nss_status getanswer_r (const querybuf *answer, int anslen, size_t buflen, int *errnop, int *h_errnop, int map, int32_t *ttlp, char **canonp); +extern enum nss_status _nss_dns_gethostbyname3_r (const char *name, int af, + struct hostent *result, + char *buffer, size_t buflen, + int *errnop, int *h_errnop, + int32_t *ttlp, + char **canonp); +hidden_proto (_nss_dns_gethostbyname3_r) + enum nss_status _nss_dns_gethostbyname3_r (const char *name, int af, struct hostent *result, char *buffer, size_t buflen, int *errnop, @@ -216,6 +224,7 @@ _nss_dns_gethostbyname3_r (const char *name, int af, struct hostent *result, free (host_buffer.buf); return status; } +hidden_def (_nss_dns_gethostbyname3_r) enum nss_status @@ -236,11 +245,11 @@ _nss_dns_gethostbyname_r (const char *name, struct hostent *result, enum nss_status status = NSS_STATUS_NOTFOUND; if (_res.options & RES_USE_INET6) - status = _nss_dns_gethostbyname2_r (name, AF_INET6, result, buffer, - buflen, errnop, h_errnop); + status = _nss_dns_gethostbyname3_r (name, AF_INET6, result, buffer, + buflen, errnop, h_errnop, NULL, NULL); if (status == NSS_STATUS_NOTFOUND) - status = _nss_dns_gethostbyname2_r (name, AF_INET, result, buffer, - buflen, errnop, h_errnop); + status = _nss_dns_gethostbyname3_r (name, AF_INET, result, buffer, + buflen, errnop, h_errnop, NULL, NULL); return status; } |