aboutsummaryrefslogtreecommitdiffstats
path: root/utils/osmo-auc-gen.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/osmo-auc-gen.c')
-rw-r--r--utils/osmo-auc-gen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c
index ec9bad88..65cfa310 100644
--- a/utils/osmo-auc-gen.c
+++ b/utils/osmo-auc-gen.c
@@ -247,6 +247,11 @@ int main(int argc, char **argv)
}
}
+ if (argc > optind) {
+ fprintf(stderr, "Unsupported positional arguments in command line\n");
+ exit(2);
+ }
+
if (!rand_is_set) {
rc = osmo_get_rand_id(_rand, 16);
if (rc < 0) {