Change in osmo-bts[master]: osmux: Skip lchans in lookup which still have no remote associated
pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/29575 ) Change subject: osmux: Skip lchans in lookup which still have no remote associated ...................................................................... osmux: Skip lchans in lookup which still have no remote associated Lchans which are marked as non-connected have not yet received information about its remote peer, hence they may not have some fields available yet. Let's skip them to avoid accessing such fields (lchan->abis_ip.osmux.in). Related: SYS#5987 Change-Id: Id53822c4a0486b0090df2db3d185e047d14fc90a --- M src/common/osmux.c 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: laforge: Looks good to me, but someone else must approve fixeria: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/common/osmux.c b/src/common/osmux.c index d10d091..498fe24 100644 --- a/src/common/osmux.c +++ b/src/common/osmux.c @@ -237,6 +237,8 @@ struct osmux_handle *h; if (!lchan->abis_ip.osmux.use) continue; + if (!lchan_osmux_connected(lchan)) + continue; if (lchan->abis_ip.osmux.local_cid != osmux_cid) continue; h = osmux_xfrm_input_get_deliver_cb_data(lchan->abis_ip.osmux.in); -- To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/29575 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bts Gerrit-Branch: master Gerrit-Change-Id: Id53822c4a0486b0090df2db3d185e047d14fc90a Gerrit-Change-Number: 29575 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: laforge <laforge@osmocom.org> Gerrit-Reviewer: pespin <pespin@sysmocom.de> Gerrit-MessageType: merged
participants (1)
-
pespin