aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-06 16:40:24 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-07 13:37:04 +0100
commit956d856b61ac222f2c5ec078495d60f71b1a6278 (patch)
tree214164d249b870c66f608e4ae049d8ae3940767f
parentba0525e3d8b7ca5e9d1cd3aeb342f09ba142bccb (diff)
gtphub: be strict about unknown cmdline args
Sponsored-by: On-Waves ehi
-rw-r--r--openbsc/src/gprs/gtphub_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gtphub_main.c b/openbsc/src/gprs/gtphub_main.c
index 0a7d383be..f56c44622 100644
--- a/openbsc/src/gprs/gtphub_main.c
+++ b/openbsc/src/gprs/gtphub_main.c
@@ -276,7 +276,8 @@ static void handle_options(struct cmdline_cfg *ccfg, int argc, char **argv)
ccfg->restart_counter_file = optarg;
break;
default:
- /* ignore */
+ LOGP(DGTPHUB, LOGL_FATAL, "Invalid command line argument, abort.\n");
+ exit(1);
break;
}
}