mncc: Do not use bts->nr as it might be NULL.

This commit is contained in:
Holger Hans Peter Freyther 2010-12-27 16:01:24 +01:00
parent ebd50a6fd2
commit 50c5ff7b94
1 changed files with 3 additions and 2 deletions

View File

@ -2921,7 +2921,7 @@ int mncc_tx_to_cc(struct gsm_network *net, int msg_type, void *arg)
int i, rc = 0;
struct gsm_trans *trans = NULL, *transt;
struct gsm_subscriber_connection *conn = NULL;
struct gsm_bts *bts = NULL;
struct gsm_bts *bts;
struct gsm_mncc *data = arg, rel;
DEBUGP(DMNCC, "receive message %s\n", get_mncc_name(msg_type));
@ -3051,7 +3051,8 @@ int mncc_tx_to_cc(struct gsm_network *net, int msg_type, void *arg)
DEBUGP(DCC, "(bts %d trx - ts - ti -- sub %s) "
"Received '%s' from MNCC with "
"unallocated channel, paging already "
"started.\n", bts->nr,
"started.\n",
trans->conn->lchan->ts->trx->bts->nr,
data->called.number,
get_mncc_name(msg_type));
subscr_put(subscr);