mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
1999-07-18 Andreas Jaeger <aj@arthur.rhein-neckar.de> * nscd/nscd_proto.h (__nscd_gethostbyaddr_r): Follow change from 1999-07-17 and adjust len parameter. * nscd/nscd_gethst_r.c (__nscd_gethostbyaddr_r): Likewise. * nscd/gethstbyad_r.c (ADD_PARAMS): Likewise. * manual/socket.texi (Host Names): Likewise. * nis/nss_nis/nis-hosts.c (_nss_nis_gethostbyaddr_r): Likewise. * nis/nss_nisplus/nisplus-hosts.c (_nss_nisplus_gethostbyaddr_r): Likewise. * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr_r): Likewise. * resolv/gethnamaddr.c (gethostbyaddr): Likewise. (ht_gethostbyaddr): Likewise. (_gethtbyaddr): Likewise.
This commit is contained in:
@ -191,7 +191,7 @@ _nss_dns_gethostbyname_r (const char *name, struct hostent *result,
|
||||
|
||||
|
||||
enum nss_status
|
||||
_nss_dns_gethostbyaddr_r (const char *addr, int len, int af,
|
||||
_nss_dns_gethostbyaddr_r (const char *addr, size_t len, int af,
|
||||
struct hostent *result, char *buffer, size_t buflen,
|
||||
int *errnop, int *h_errnop)
|
||||
{
|
||||
@ -207,7 +207,8 @@ _nss_dns_gethostbyaddr_r (const char *addr, int len, int af,
|
||||
} *host_data = (struct host_data *) buffer;
|
||||
querybuf host_buffer;
|
||||
char qbuf[MAXDNAME+1], *qp;
|
||||
int size, n, status;
|
||||
size_t size;
|
||||
int n, status;
|
||||
|
||||
if (af == AF_INET6 && len == IN6ADDRSZ &&
|
||||
(memcmp (uaddr, mapped, sizeof mapped) == 0
|
||||
|
Reference in New Issue
Block a user