summaryrefslogtreecommitdiff
path: root/src/lib/libc/net/gethostnamadr.c
diff options
context:
space:
mode:
authordm <>1996-02-19 19:53:30 +0000
committerdm <>1996-02-19 19:53:30 +0000
commit543eeae2382e5de0b9518bdd9f7a75e5686fd056 (patch)
tree094165ba891a348ad41b10f58ccb57f1a01f8e74 /src/lib/libc/net/gethostnamadr.c
parent4a12c1341f3a7e10bd98cebfe52fc96867f82baf (diff)
downloadopenbsd-543eeae2382e5de0b9518bdd9f7a75e5686fd056.tar.gz
openbsd-543eeae2382e5de0b9518bdd9f7a75e5686fd056.tar.bz2
openbsd-543eeae2382e5de0b9518bdd9f7a75e5686fd056.zip
netbsd: bind 4.9.3
Diffstat (limited to 'src/lib/libc/net/gethostnamadr.c')
-rw-r--r--src/lib/libc/net/gethostnamadr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c
index 2c0595803b..ec3f14a900 100644
--- a/src/lib/libc/net/gethostnamadr.c
+++ b/src/lib/libc/net/gethostnamadr.c
@@ -270,7 +270,6 @@ gethostbyname(name)
270 register struct hostent *hp; 270 register struct hostent *hp;
271 char lookups[MAXDNSLUS]; 271 char lookups[MAXDNSLUS];
272 272
273#ifdef insecure
274 /* 273 /*
275 * disallow names consisting only of digits/dots, unless 274 * disallow names consisting only of digits/dots, unless
276 * they end in a dot. 275 * they end in a dot.
@@ -302,7 +301,6 @@ gethostbyname(name)
302 if (!isdigit(*cp) && *cp != '.') 301 if (!isdigit(*cp) && *cp != '.')
303 break; 302 break;
304 } 303 }
305#endif
306 304
307 if ((_res.options & RES_INIT) == 0 && res_init() == -1) 305 if ((_res.options & RES_INIT) == 0 && res_init() == -1)
308 return (_gethtbyname(name)); 306 return (_gethtbyname(name));