pespin submitted this change.
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(-)
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 change 29575. To unsubscribe, or for help writing mail filters, visit settings.