From fe0c13f8bd58603fbe0c82ace29f8ed6b1b199cb Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 15 Mar 2012 23:39:53 +0100 Subject: 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! --- src/common/oml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/oml.c') diff --git a/src/common/oml.c b/src/common/oml.c index f6eaec75..c7591d76 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -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 */ -- cgit v1.2.3