commit | e59c56eba96a1dffe0c71b664aad739ad5813168 | [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 | f2d665803b58b3279626bf0da193398002ceef36 [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;