From 65bdc914f64c7ea2ccd417ef7507819bb85983f7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 26 Oct 2009 20:14:33 +0100 Subject: Fix segfault, use trx->bts rather than bts in patch_nm_tables() --- openbsc/src/bsc_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc') diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c index 1394dd89c..815fe2b6e 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -378,7 +378,7 @@ 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); + patch_nm_tables(trx->bts); enum abis_nm_chan_comb ccomb = abis_nm_chcomb4pchan(ts->pchan); abis_nm_set_channel_attr(ts, ccomb); -- cgit v1.2.3