aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-03-15 23:39:53 +0100
committerHarald Welte <laforge@gnumonks.org>2012-03-15 23:39:53 +0100
commitfe0c13f8bd58603fbe0c82ace29f8ed6b1b199cb (patch)
treee5c48ada66f9184fdf32f0a6cb6d85f36fd3f6be /src/common/oml.c
parent3525f2c0389dc1e074e9af7c1a1af4e85f1f0246 (diff)
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!
Diffstat (limited to 'src/common/oml.c')
-rw-r--r--src/common/oml.c2
1 files changed, 1 insertions, 1 deletions
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 */