diff options
-rw-r--r-- | lib/libc/net/gethostbyht.c | 2 |
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); |