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
0a07327fc4
commit
c5bbb8c517
@ -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