diff options
author | guido <guido@FreeBSD.org> | 2002-01-04 13:42:14 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 2002-01-04 13:42:14 +0000 |
commit | f43a533e3e5b13db559dfb7feed36745d0601e7e (patch) | |
tree | 84676b068551d77f5ea31217c10c1667c024c9cf | |
parent | e7a3824f45d1b49ac859c754b79ab40e2c95bd01 (diff) | |
download | FreeBSD-src-f43a533e3e5b13db559dfb7feed36745d0601e7e.zip FreeBSD-src-f43a533e3e5b13db559dfb7feed36745d0601e7e.tar.gz |
Fix the coredump that occurs when, from the tfpt prompt, a 'c' command is
issued without an argument.
-rw-r--r-- | usr.bin/tftp/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c index ca2e346..dde8169 100644 --- a/usr.bin/tftp/main.c +++ b/usr.bin/tftp/main.c @@ -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; } |