aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-16 00:45:59 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-16 02:16:01 +0800
commit1502ddefac7b2b1611693f167528aceb34fb8983 (patch)
treee6f7d4037b26d1dcc10e98b526a7353103d682a3 /openbsc
parentbd76fab9cb6f7b452ae225b4dc0b07ac8128fc76 (diff)
chan_alloc: Allocate a subscriber connection as child of the network
Due handover we might leave the BTS and if we ever allocate/release a BTS dynamically we have a problem here.
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/chan_alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c
index a0eda546e..3c8082da6 100644
--- a/openbsc/src/chan_alloc.c
+++ b/openbsc/src/chan_alloc.c
@@ -513,7 +513,7 @@ struct gsm_subscriber_connection *subscr_con_allocate(struct gsm_lchan *lchan)
{
struct gsm_subscriber_connection *conn;
- conn = talloc_zero(lchan->ts->trx->bts, struct gsm_subscriber_connection);
+ conn = talloc_zero(lchan->ts->trx->bts->network, struct gsm_subscriber_connection);
if (!conn)
return NULL;