summaryrefslogtreecommitdiffstats
path: root/usr.bin/tftp/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/tftp/main.c')
-rw-r--r--usr.bin/tftp/main.c2
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;
}
OpenPOWER on IntegriCloud