From 91b46d9bcd3b01ebee06a42d92d3095cd5288743 Mon Sep 17 00:00:00 2001 From: ume Date: Sat, 30 Apr 2005 18:46:27 +0000 Subject: _ht_gethostbyaddr didn't handle RES_USE_INET6 correctly. --- lib/libc/net/gethostbyht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.1