[PATCH 1/4] ip.access: Fix bad call to patch_nm_tables when configuring channel

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Sylvain Munaut 246tnt at gmail.com
Sun Oct 25 16:56:41 UTC 2009


From: Sylvain Munaut <tnt at 246tNt.com>

The bts variable isn't even defined at that point causing crashes.
The patch_nm_tables is called for BTS object class.

Signed-off-by: Sylvain Munaut <tnt at 246tNt.com>
---
 openbsc/src/bsc_init.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index 1394dd8..0adc656 100644
--- a/openbsc/src/bsc_init.c
+++ b/openbsc/src/bsc_init.c
@@ -378,7 +378,6 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj,
 		trx = ts->trx;
 		if (new_state->operational == 1 &&
 		    new_state->availability == NM_AVSTATE_DEPENDENCY) {
-			patch_nm_tables(bts);
 			enum abis_nm_chan_comb ccomb =
 						abis_nm_chcomb4pchan(ts->pchan);
 			abis_nm_set_channel_attr(ts, ccomb);
-- 
1.6.4





More information about the OpenBSC mailing list