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:
parent
bd76fab9cb
commit
1502ddefac
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue