Die when too many arguments are given to ax25dump
This commit is contained in:
parent
7fdf3a8416
commit
ab3679b788
1 changed files with 4 additions and 0 deletions
|
@ -72,6 +72,10 @@ int main(int argc, char **argv) {
|
|||
if (ifname) {
|
||||
patty_client_setsockopt_if ifreq;
|
||||
|
||||
if (optind < argc) {
|
||||
usage(argc, argv, "Too many arguments provided");
|
||||
}
|
||||
|
||||
info.flags = PATTY_KISS_TNC_FD;
|
||||
|
||||
if ((client = patty_client_new(sock)) == NULL) {
|
||||
|
|
Loading…
Add table
Reference in a new issue