diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1997-01-05 17:26:09 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1997-01-05 17:26:09 +0000 |
| commit | 64cf8d66e2e75a051d4560193b06a81dbdec95d8 (patch) | |
| tree | e70aece3b5ef69f60f4fa409cc563dd076cbe895 /lib | |
| parent | 42446c543a4c31c829e62064dac3f6c7583880ad (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/net/gethostbydns.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index f25abfc29ff1..9a07a45ee4f6 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -56,7 +56,7 @@ #if defined(LIBC_SCCS) && !defined(lint) static char sccsid[] = "@(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93"; static char fromrcsid[] = "From: Id: gethnamaddr.c,v 8.20 1996/09/28 06:51:07 vixie Exp"; -static char rcsid[] = "$Id: gethostbydns.c,v 1.15 1996/12/27 18:21:05 wpaul Exp $"; +static char rcsid[] = "$Id: gethostbydns.c,v 1.16 1996/12/30 13:18:37 peter Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -497,6 +497,11 @@ _gethostbydnsname(name, af) if (!isdigit(*cp) && *cp != '.') break; } +/* + * XXX: isxdigit(name[0]) gives false failures on short names which looks + * like hexadecimal digits, f.e. "fade", "babe", "d133", etc. + */ +#if 0 if (isxdigit(name[0]) || name[0] == ':') for (cp = name;; ++cp) { if (!*cp) { @@ -527,7 +532,7 @@ _gethostbydnsname(name, af) if (!isxdigit(*cp) && *cp != ':' && *cp != '.') break; } - +#endif /* XXX */ if ((n = res_search(name, C_IN, type, buf.buf, sizeof(buf))) < 0) { dprintf("res_search failed (%d)\n", n); return (NULL); |
