commit | 269ae75321174b70d9af622ce0e7a3a91be4a9fd | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Tue May 18 14:44:31 2010 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Tue May 18 14:44:31 2010 +0200 |
tree | ead51e4917e8d1fdc4d953c12f4c019f119edfd2 | |
parent | 3c0b9b9c2a5ee716a87c45ced1c5c9761ce3c2e8 [diff] |
[GPRS] SGSN: exit() if we cannot bind to the GTP address
diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index e72d398..47b6c51 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c
@@ -174,6 +174,9 @@ } rc = sgsn_gtp_init(&sgsn_inst); + if (rc) + exit(2); + nsip_listen(sgsn_nsi, sgsn_inst.cfg.nsip_listen_port); _ggsn.gtp_version = 1;