<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-iuh/+/15179">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">iu_client: sccp_sap_up: set rc early<br><br>Allows to skip assignment later.<br><br>Change-Id: Idd803774612719df144bef569fb734289aa31282<br>---<br>M src/iu_client.c<br>1 file changed, 1 insertion(+), 3 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/79/15179/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 9addd1c..f8333af 100644</span><br><span>--- a/src/iu_client.c</span><br><span>+++ b/src/iu_client.c</span><br><span>@@ -765,7 +765,7 @@</span><br><span>      struct osmo_sccp_user *scu = _scu;</span><br><span>   struct osmo_scu_prim *prim = (struct osmo_scu_prim *) oph;</span><br><span>   struct osmo_prim_hdr *resp = NULL;</span><br><span style="color: hsl(0, 100%, 40%);">-      int rc;</span><br><span style="color: hsl(120, 100%, 40%);">+       int rc = -1;</span><br><span>         struct ranap_ue_conn_ctx *ue;</span><br><span>        struct new_ue_conn_ctx new_ctx = {};</span><br><span> </span><br><span>@@ -774,7 +774,6 @@</span><br><span>       switch (OSMO_PRIM_HDR(oph)) {</span><br><span>        case OSMO_PRIM(OSMO_SCU_PRIM_N_CONNECT, PRIM_OP_CONFIRM):</span><br><span>            /* confirmation of outbound connection */</span><br><span style="color: hsl(0, 100%, 40%);">-               rc = -1;</span><br><span>             break;</span><br><span>       case OSMO_PRIM(OSMO_SCU_PRIM_N_CONNECT, PRIM_OP_INDICATION):</span><br><span>                 /* indication of new inbound connection request*/</span><br><span>@@ -821,7 +820,6 @@</span><br><span>              rc = ranap_cn_rx_cl(cn_ranap_handle_cl, prim, msgb_l2(oph->msg), msgb_l2len(oph->msg));</span><br><span>                break;</span><br><span>       default:</span><br><span style="color: hsl(0, 100%, 40%);">-                rc = -1;</span><br><span>             break;</span><br><span>       }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-iuh/+/15179">change 15179</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/+/15179"/><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: Idd803774612719df144bef569fb734289aa31282 </div>
<div style="display:none"> Gerrit-Change-Number: 15179 </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>