Fix a bug I introduced in Rev. 1.21 that prevented 'whois test' from

working.

Reviewed by:	des
Approved by:	des
This commit is contained in:
mike 2001-07-22 18:23:24 +00:00
parent 0a07327fc4
commit c5bbb8c517

View File

@ -193,6 +193,8 @@ choose_server(char *domain)
errx(EX_USAGE, "can't search for a null string");
while (pos > domain && *pos != '.')
--pos;
if (pos <= domain)
return (NULL);
if (isdigit((unsigned char)*++pos))
s_asprintf(&retval, "%s", ANICHOST);
else