<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-iuh/+/15178">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">iu_client: ensure UE is not NULL on CO primitives<br><br>When ue_conn_ctx_find() can not find a UE it returns NULL.<br><br>Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5<br>---<br>M src/iu_client.c<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-iuh refs/changes/78/15178/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/iu_client.c b/src/iu_client.c</span><br><span>index f4e0664..9addd1c 100644</span><br><span>--- a/src/iu_client.c</span><br><span>+++ b/src/iu_client.c</span><br><span>@@ -798,6 +798,9 @@</span><br><span>              LOGPIU(LOGL_DEBUG, "N-DISCONNECT.ind(%u)\n",</span><br><span>                      prim->u.disconnect.conn_id);</span><br><span>               ue = ue_conn_ctx_find(prim->u.disconnect.conn_id);</span><br><span style="color: hsl(120, 100%, 40%);">+         if (!ue)</span><br><span style="color: hsl(120, 100%, 40%);">+                      break;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>             rc = ranap_cn_rx_co(cn_ranap_handle_co, ue, msgb_l2(oph->msg), msgb_l2len(oph->msg));</span><br><span>          break;</span><br><span>       case OSMO_PRIM(OSMO_SCU_PRIM_N_DATA, PRIM_OP_INDICATION):</span><br><span>@@ -806,6 +809,9 @@</span><br><span>                     osmo_hexdump(msgb_l2(oph->msg), msgb_l2len(oph->msg)));</span><br><span>                 /* resolve UE context */</span><br><span>             ue = ue_conn_ctx_find(prim->u.data.conn_id);</span><br><span style="color: hsl(120, 100%, 40%);">+               if (!ue)</span><br><span style="color: hsl(120, 100%, 40%);">+                      break;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>             rc = ranap_cn_rx_co(cn_ranap_handle_co, ue, msgb_l2(oph->msg), msgb_l2len(oph->msg));</span><br><span>          break;</span><br><span>       case OSMO_PRIM(OSMO_SCU_PRIM_N_UNITDATA, PRIM_OP_INDICATION):</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-iuh/+/15178">change 15178</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/osmo-iuh/+/15178"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-iuh </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I63222fda6778417b1c986cb05772fecc51c43bb5 </div>
<div style="display:none"> Gerrit-Change-Number: 15178 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: lynxis lazus <lynxis@fe80.eu> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>