Fix the coredump that occurs when, from the tfpt prompt, a 'c' command is
issued without an argument.
This commit is contained in:
parent
2f936029a4
commit
57aa7d5027
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user