Fix the coredump that occurs when, from the tfpt prompt, a 'c' command is

issued without an argument.
This commit is contained in:
Guido van Rooij 2002-01-04 13:42:14 +00:00
parent 2f936029a4
commit 57aa7d5027
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=88882

View File

@ -200,7 +200,7 @@ setpeer(argc, argv)
argc = margc;
argv = margv;
}
if (argc > 3) {
if ((argc < 2) || (argv > 3)) {
printf("usage: %s host-name [port]\n", argv[0]);
return;
}