diff options
| author | Mike Barcroft <mike@FreeBSD.org> | 2001-07-22 18:23:24 +0000 |
|---|---|---|
| committer | Mike Barcroft <mike@FreeBSD.org> | 2001-07-22 18:23:24 +0000 |
| commit | 2c69b9a13e3209034c5e4d8d7b576edb1deecefc (patch) | |
| tree | 4d2a59b4d1b5c1ad31608ee863e5848055465436 /usr.bin | |
| parent | b554a656b3b6b6b934607b61eea09a2699829241 (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/whois/whois.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/whois/whois.c b/usr.bin/whois/whois.c index 6fd7e1cb8eda..4115f4434e65 100644 --- a/usr.bin/whois/whois.c +++ b/usr.bin/whois/whois.c @@ -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 |
