summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/abis_om2000.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-09-07 19:08:37 +0200
committerHarald Welte <laforge@gnumonks.org>2012-09-07 19:10:47 +0200
commit240a828ffd3ec17cfe0e2aceaa564a99b06006fc (patch)
tree06965e8854135a18a2fcdb4eec4c7f63f7e42ca1 /openbsc/src/libbsc/abis_om2000.c
parent037065deeed3d239a562bb7a900bb01e5146a09d (diff)
OM2000: don't signal operational state for a unknown MO
This case happens if the BTS signals operational state for a TRXC which is not configured as TRX in the openbsc.cfg
Diffstat (limited to 'openbsc/src/libbsc/abis_om2000.c')
-rw-r--r--openbsc/src/libbsc/abis_om2000.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/abis_om2000.c b/openbsc/src/libbsc/abis_om2000.c
index 139cc04..1183895 100644
--- a/openbsc/src/libbsc/abis_om2000.c
+++ b/openbsc/src/libbsc/abis_om2000.c
@@ -788,6 +788,9 @@ static void signal_op_state(struct gsm_bts *bts, struct abis_om2k_mo *mo)
struct gsm_nm_state *nm_state = mo2nm_state(bts, mo);
struct nm_statechg_signal_data nsd;
+ if (!nm_state)
+ return;
+
nsd.bts = bts;
nsd.obj = mo2obj(bts, mo);
nsd.old_state = nm_state;