Fix gethostbyaddr():

call _getdnsbyaddr() instead of _getdnsbyname() ;-)
Submitted by:	Geoff
This commit is contained in:
Geoff Rehmet 1994-08-28 13:33:10 +00:00
parent 688b53ece4
commit 1ea8221717

View File

@ -55,7 +55,7 @@
static char sccsid[] = "From: @(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93";
/*static char rcsid[] = "From: Id: gethnamaddr.c,v 4.9.1.1 1993/05/02 22:43:03 vixie Rel ";*/
static const char rcsid[] =
"$Id: gethostnamadr.c,v 1.2 1994/08/09 20:23:14 wollman Exp $";
"$Id: gethostnamadr.c,v 1.3 1994/08/09 22:44:12 wollman Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@ -622,7 +622,7 @@ gethostbyaddr(const char *addr, int len, int type)
hp = _gethtbyaddr(addr, len, type);
break;
case SERVICE_BIND:
hp = _getdnsbyname(addr, len, type);
hp = _getdnsbyaddr(addr, len, type);
break;
case SERVICE_NIS:
#ifdef YP