aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-mgw/mgw_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-mgw/mgw_main.c')
-rw-r--r--src/osmo-mgw/mgw_main.c4
1 files changed, 4 insertions, 0 deletions
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