summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-04-30 18:46:27 +0000
committerume <ume@FreeBSD.org>2005-04-30 18:46:27 +0000
commit91b46d9bcd3b01ebee06a42d92d3095cd5288743 (patch)
treefe1449571e5acfcefba5409e614e2159ef9126c0 /lib
parent7384d01d80905fb04664647a1b8741677745da0c (diff)
downloadFreeBSD-src-91b46d9bcd3b01ebee06a42d92d3095cd5288743.zip
FreeBSD-src-91b46d9bcd3b01ebee06a42d92d3095cd5288743.tar.gz
_ht_gethostbyaddr didn't handle RES_USE_INET6 correctly.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/gethostbyht.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/gethostbyht.c b/lib/libc/net/gethostbyht.c
index 20cc97e..452a6da 100644
--- a/lib/libc/net/gethostbyht.c
+++ b/lib/libc/net/gethostbyht.c
@@ -245,7 +245,7 @@ _ht_gethostbyaddr(void *rval, void *cb_data, va_list ap)
hed = va_arg(ap, struct hostent_data *);
sethostent_r(0, hed);
- while ((error = gethostent_r(he, hed)) == 0)
+ while ((error = gethostent_p(he, hed, 0)) == 0)
if (he->h_addrtype == af && !bcmp(he->h_addr, addr, len))
break;
endhostent_r(hed);
OpenPOWER on IntegriCloud