fixeria has uploaded this change for review.
VTY: fix NULL-pointer dereference in 'show transceiver'
Change-Id: I403a027f064a4898eb74a11381bab3c884ec8ccf
---
M src/osmo-bts-trx/trx_vty.c
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/93/27693/1
diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c
index 2b8bc24..c6209a3 100644
--- a/src/osmo-bts-trx/trx_vty.c
+++ b/src/osmo-bts-trx/trx_vty.c
@@ -94,6 +94,9 @@
const struct l1sched_ts *l1ts = ts->priv;
const struct trx_sched_multiframe *mf;
+ /* May be NULL in absence of the A-bis connection */
+ if (l1ts == NULL)
+ continue;
mf = &trx_sched_multiframes[l1ts->mf_index];
vty_out(vty, " timeslot #%u (%s)%s",
To view, visit change 27693. To unsubscribe, or for help writing mail filters, visit settings.