aboutsummaryrefslogtreecommitdiffstats
path: root/randpkt.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-09-05 17:51:43 -0700
committerGuy Harris <guy@alum.mit.edu>2016-09-06 00:52:24 +0000
commitc02865d3feba49bf6aaa9ce7190883c2f11e5631 (patch)
tree0cfe8620fe61c8c1bdc559427dcd9d6044c2495b /randpkt.c
parentc1dcaff9417ba8697d9686185002ab03fee83fe5 (diff)
Return after calling cmdarg_err().
cmdarg_err() prints a message, but it doesn't exit. Change-Id: I887d96bce483f873a4375cb6b5254915d014f1b1 Reviewed-on: https://code.wireshark.org/review/17509 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'randpkt.c')
-rw-r--r--randpkt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/randpkt.c b/randpkt.c
index 58ff3b1..4f90231 100644
--- a/randpkt.c
+++ b/randpkt.c
@@ -172,6 +172,7 @@ main(int argc, char **argv)
produce_max_bytes = get_positive_int(optarg, "max bytes");
if (produce_max_bytes > 65536) {
cmdarg_err("max bytes is > 65536");
+ return 1;
}
break;