diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-18 14:44:31 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-18 14:44:31 +0200 |
commit | 269ae75321174b70d9af622ce0e7a3a91be4a9fd (patch) | |
tree | ead51e4917e8d1fdc4d953c12f4c019f119edfd2 /openbsc/src/gprs/sgsn_main.c | |
parent | 3c0b9b9c2a5ee716a87c45ced1c5c9761ce3c2e8 (diff) |
[GPRS] SGSN: exit() if we cannot bind to the GTP address
Diffstat (limited to 'openbsc/src/gprs/sgsn_main.c')
-rw-r--r-- | openbsc/src/gprs/sgsn_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c index e72d398a1..47b6c51a4 100644 --- a/openbsc/src/gprs/sgsn_main.c +++ b/openbsc/src/gprs/sgsn_main.c @@ -174,6 +174,9 @@ int main(int argc, char **argv) } rc = sgsn_gtp_init(&sgsn_inst); + if (rc) + exit(2); + nsip_listen(sgsn_nsi, sgsn_inst.cfg.nsip_listen_port); _ggsn.gtp_version = 1; |