Lines 76-89
Link Here
|
76 |
int *errnop; |
76 |
int *errnop; |
77 |
int *h_errnop; |
77 |
int *h_errnop; |
78 |
|
78 |
|
79 |
addr = va_arg(ap, const void *); |
79 |
addr = va_arg(ap, const void *); |
80 |
addrlen = va_arg(ap, socklen_t); |
80 |
addrlen = va_arg(ap, socklen_t); |
81 |
af = va_arg(ap, int); |
81 |
af = va_arg(ap, int); |
82 |
hptr = va_arg(ap, struct hostent *); |
82 |
hptr = va_arg(ap, struct hostent *); |
83 |
buffer = va_arg(ap, char *); |
83 |
buffer = va_arg(ap, char *); |
84 |
buflen = va_arg(ap, size_t); |
84 |
buflen = va_arg(ap, size_t); |
85 |
errnop = va_arg(ap, int *); |
85 |
errnop = va_arg(ap, int *); |
86 |
h_errnop = va_arg(ap, int *); |
86 |
h_errnop = va_arg(ap, int *); |
87 |
|
87 |
|
88 |
s = _nss_mdns_gethostbyaddr_r( |
88 |
s = _nss_mdns_gethostbyaddr_r( |
89 |
addr, addrlen, af, hptr, buffer, buflen, errnop, h_errnop); |
89 |
addr, addrlen, af, hptr, buffer, buflen, errnop, h_errnop); |
Lines 110-117
Link Here
|
110 |
|
110 |
|
111 |
for (addrp = host.h_addr_list; *addrp; addrp++) { |
111 |
for (addrp = host.h_addr_list; *addrp; addrp++) { |
112 |
/* XXX this sucks, but get_ai is not public */ |
112 |
/* XXX this sucks, but get_ai is not public */ |
113 |
if (!inet_ntop(host.h_addrtype, *addrp, |
113 |
if (!inet_ntop(host.h_addrtype, *addrp, addrstr, sizeof(addrstr))) |
114 |
addrstr, sizeof(addrstr))) |
|
|
115 |
continue; |
114 |
continue; |
116 |
hints = *pai; |
115 |
hints = *pai; |
117 |
hints.ai_flags = AI_NUMERICHOST; |
116 |
hints.ai_flags = AI_NUMERICHOST; |