diff --git a/src/osmo-mgw/mgw_main.c b/src/osmo-mgw/mgw_main.c index adc1751bc..4168e0dc3 100644 --- a/src/osmo-mgw/mgw_main.c +++ b/src/osmo-mgw/mgw_main.c @@ -132,6 +132,10 @@ static void handle_options(int argc, char **argv) break; }; } + if (argc > optind) { + fprintf(stderr, "Unsupported positional arguments on command line\n"); + exit(2); + } } /* Callback function to be called when the RSIP ("Reset in Progress") mgcp