---
src/common/l1sap.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index e9d815c..c631860 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -467,6 +467,8 @@ int l1sap_chan_act(struct gsm_bts_trx *trx, uint8_t
chan_nr, struct tlv_parsed *
LOGP(DL1P, LOGL_INFO, "activating channel chan_nr=%02x trx=%d\n",
chan_nr, trx->nr);
+ /* osmo-pcu calls this without a valid 'tp' parameter, so we
+ * need to make sure ew don't crash here */
if (tp && TLVP_PRESENT(tp, GSM48_IE_CHANDESC_2) &&
TLVP_LEN(tp, GSM48_IE_CHANDESC_2) >= sizeof(*cd)) {
cd = (struct gsm48_chan_desc *)
--
2.1.0- Final review of L1SAP ported to current maste Harald Welte
- [PATCH 01/33] sysmo-bts: Use correct boundaries of L1 ms... Harald Welte
- [PATCH 15/33] l1sap: additional comments explaining l1sa... Harald Welte
- [PATCH 14/33] Add PDCH messages to PH-/MPH-/TCH-SAP inte... Harald Welte
- [PATCH 12/33] Add PCH/AGCH message to PH-/MPH-/TCH-SAP i... Harald Welte
- [PATCH 05/33] Add RACH message to PH-/MPH-/TCH-SAP inter... Harald Welte
- [PATCH 10/33] l1sap: correctly set chan_nr on PRIM_PH_RA... Harald Welte
- [PATCH 11/33] l1sap: sysmobts: remove obsolete get_lapdm... Harald Welte
- [PATCH 20/33] l1sap: re-introduce a comment that was los... Harald Welte
- [PATCH 21/33] Add TCH messages to PH-/MPH-/TCH-SAP inter... Harald Welte
- [PATCH 31/33] Add gsmtap option to command line to main.... Harald Welte
- [PATCH 22/33] l1sap: Use {data, empty}_req_from_l1sap() ... Harald Welte
- [PATCH 29/33] Send primitives at PH-/MPH-/TCH-SAP interf... Harald Welte
- [PATCH 18/33] Relace bts_model_get_time() by get_time() ... Harald Welte
- [PATCH 26/33] l1sap: Port code to new ciphering handling Harald Welte
- [PATCH 07/33] l1sap: fix coding style Harald Welte
- [PATCH 19/33] Move chan act/rel/modify from bts_model to... Harald Welte
- [PATCH 16/33] Add TIME (MPH_INFO) IND messages to PH-/MP... Harald Welte
- [PATCH 08/33] l1sap: fix missing include file and result... Harald Welte
