incorrectly initialized hostent. in particular, h_name is supposed to
be `an official name', and gethostbyname() wasn't even trying to meet
that requirement.
register struct hostent *hp;
char lookups[MAXDNSLUS];
+#ifdef insecure
/*
* disallow names consisting only of digits/dots, unless
* they end in a dot.
if (!isdigit(*cp) && *cp != '.')
break;
}
+#endif
if ((_res.options & RES_INIT) == 0 && res_init() == -1)
return (_gethtbyname(name));