mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue