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>
This commit is contained in:
Guy Harris 2016-09-05 17:51:43 -07:00
parent c1dcaff941
commit c02865d3fe
1 changed files with 1 additions and 0 deletions

View File

@ -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;