summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/net/gethostnamadr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/net/gethostnamadr.c b/lib/libc/net/gethostnamadr.c
index ec3f14a9002..2c0595803b7 100644
--- a/lib/libc/net/gethostnamadr.c
+++ b/lib/libc/net/gethostnamadr.c
@@ -270,6 +270,7 @@ gethostbyname(name)
register struct hostent *hp;
char lookups[MAXDNSLUS];
+#ifdef insecure
/*
* disallow names consisting only of digits/dots, unless
* they end in a dot.
@@ -301,6 +302,7 @@ gethostbyname(name)
if (!isdigit(*cp) && *cp != '.')
break;
}
+#endif
if ((_res.options & RES_INIT) == 0 && res_init() == -1)
return (_gethtbyname(name));