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.
This commit is contained in:
Holger Hans Peter Freyther 2010-09-16 00:45:59 +08:00
parent bd76fab9cb
commit 1502ddefac
1 changed files with 1 additions and 1 deletions

View File

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