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:
parent
b554a656b3
commit
2c69b9a13e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=80155
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user