MNCC: avoid segfault in DEBUGP due to non-existing conn->lchan

This commit is contained in:
Harald Welte 2010-12-26 19:06:37 +01:00
parent f0901f0067
commit b854b29e32
1 changed files with 1 additions and 1 deletions

View File

@ -1333,7 +1333,7 @@ static int mncc_recvmsg(struct gsm_network *net, struct gsm_trans *trans,
unsigned char *data;
if (trans)
if (trans->conn)
if (trans->conn && trans->conn->lchan)
DEBUGP(DCC, "(bts %d trx %d ts %d ti %x sub %s) "
"Sending '%s' to MNCC.\n",
trans->conn->lchan->ts->trx->bts->nr,