OML: when allocating merged tlvp arrays for MO, use bts context

'ts' is not a talloc-managed pointer but an offset into the bts
structure.  As such, we cannot pass it to talloc as context!
This commit is contained in:
Harald Welte 2012-03-15 23:39:53 +01:00
parent 3525f2c038
commit fe0c13f8bd
1 changed files with 1 additions and 1 deletions

View File

@ -613,7 +613,7 @@ static int oml_rx_set_chan_attr(struct gsm_bts_trx_ts *ts, struct msgb *msg)
}
/* merge existing BTS attributes with new attributes */
tp_merged = tlvp_copy(ts->mo.nm_attr, ts);
tp_merged = tlvp_copy(ts->mo.nm_attr, bts);
tlvp_merge(tp_merged, &tp);
/* Call into BTS driver to check attribute values */