Fix segfault, use trx->bts rather than bts in patch_nm_tables()

This commit is contained in:
Harald Welte 2009-10-26 20:14:33 +01:00
parent 85c00cc3d9
commit 65bdc914f6
1 changed files with 1 additions and 1 deletions

View File

@ -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);