1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-01 08:27:59 +00:00

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 Barcroft 2001-07-22 18:23:24 +00:00
parent b554a656b3
commit 2c69b9a13e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80155

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