Add check for non existing lchan at tch_frame_down()

Traffic cannot sent to BTS, if there is (currently) no logical channel
associated with the transaction.

This happens, if TCH traffic is received from upper layer, but there is
no lchan available before completing immediate assignment, handover or
assignment process.
This commit is contained in:
Andreas Eversberg
2013-03-11 08:20:48 +01:00
committed by Ivan Kluchnikov
parent ce7437e27c
commit f4d336e2c4

View File

@@ -1836,6 +1836,10 @@ int tch_frame_down(struct gsm_network *net, uint32_t callref, struct gsm_data_fr
LOGP(DMNCC, LOGL_NOTICE, "TCH frame for trans without conn\n");
return 0;
}
if (!trans->conn->lchan) {
LOGP(DMNCC, LOGL_NOTICE, "TCH frame for trans without lchan\n");
return 0;
}
if (trans->conn->lchan->type != GSM_LCHAN_TCH_F
&& trans->conn->lchan->type != GSM_LCHAN_TCH_H) {
/* This should be LOGL_ERROR or NOTICE, but