msc: exit(2) on unsupported positional arguments on command line

Change-Id: Iad858974e9d97ae14f3da6dc21267aafafcda0ef
changes/55/16455/1
Harald Welte 3 years ago
parent db4839c267
commit abbdbfbbab
  1. 5
      src/osmo-msc/msc_main.c

@ -198,6 +198,11 @@ static void handle_options(int argc, char **argv)
exit(-1);
}
}
if (argc > optind) {
fprintf(stderr, "Unsupported positional arguments on command line\n");
exit(2);
}
}
struct gsm_network *msc_network_alloc(void *ctx,

Loading…
Cancel
Save