commit | 956d856b61ac222f2c5ec078495d60f71b1a6278 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Sun Dec 06 16:40:24 2015 +0100 |
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Mon Dec 07 13:37:04 2015 +0100 |
tree | 214164d249b870c66f608e4ae049d8ae3940767f | |
parent | ba0525e3d8b7ca5e9d1cd3aeb342f09ba142bccb [diff] |
gtphub: be strict about unknown cmdline args Sponsored-by: On-Waves ehi
diff --git a/openbsc/src/gprs/gtphub_main.c b/openbsc/src/gprs/gtphub_main.c index 0a7d383..f56c446 100644 --- a/openbsc/src/gprs/gtphub_main.c +++ b/openbsc/src/gprs/gtphub_main.c
@@ -276,7 +276,8 @@ ccfg->restart_counter_file = optarg; break; default: - /* ignore */ + LOGP(DGTPHUB, LOGL_FATAL, "Invalid command line argument, abort.\n"); + exit(1); break; } }