mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-13 14:50:17 +00:00
(gethostbyaddr): Try ip6.int if ip6.arpa fails.
This commit is contained in:
parent
6d02b93b43
commit
ba81f39e0f
@ -696,6 +696,10 @@ gethostbyaddr(addr, len, af)
|
|||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
n = res_nquery(&_res, qbuf, C_IN, T_PTR, (u_char *)buf.buf, sizeof buf.buf);
|
n = res_nquery(&_res, qbuf, C_IN, T_PTR, (u_char *)buf.buf, sizeof buf.buf);
|
||||||
|
if (n < 0 && af == AF_INET6) {
|
||||||
|
strcpy(qp, "ip6.int");
|
||||||
|
n = res_nquery(&_res, qbuf, C_IN, T_PTR, (u_char *)buf.buf, sizeof buf.buf);
|
||||||
|
}
|
||||||
if (n < 0) {
|
if (n < 0) {
|
||||||
dprintf("res_nquery failed (%d)\n", n);
|
dprintf("res_nquery failed (%d)\n", n);
|
||||||
if (errno == ECONNREFUSED)
|
if (errno == ECONNREFUSED)
|
||||||
|
Loading…
Reference in New Issue
Block a user