<p>Pau Espin Pedrol has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/14143">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lcls: Fix MDCX with garbage on LCLS loop break<br><br>Commit c997ceb750a67baef1a05590febe1c678b287d8f which added initial code<br>did use memset(0) on the structure. However, later commit<br>b407a8aca45ba8f3426003c4960ca8bd5cfe60e5 modifying the code forgot to<br>initialize it, and as a result most of its fields contain garbage.<br><br>This results in an MDCX with strange/incorrect values sent when LCLS<br>loop breaks, breaking TTCN3 test BSC_Tests_LCLS.TC_lcls_connect_break.<br><br>Change-Id: Ib1a7d825690db782a5d14f2d8817acf6cb6a52ea<br>---<br>M src/osmo-bsc/osmo_bsc_lcls.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/43/14143/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/osmo-bsc/osmo_bsc_lcls.c b/src/osmo-bsc/osmo_bsc_lcls.c</span><br><span>index a01c02e..f0c62a1 100644</span><br><span>--- a/src/osmo-bsc/osmo_bsc_lcls.c</span><br><span>+++ b/src/osmo-bsc/osmo_bsc_lcls.c</span><br><span>@@ -283,7 +283,7 @@</span><br><span> </span><br><span> static void lcls_break_local_switching(struct gsm_subscriber_connection *conn)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-       struct mgcp_conn_peer mdcx_info;</span><br><span style="color: hsl(120, 100%, 40%);">+      struct mgcp_conn_peer mdcx_info = {};</span><br><span> </span><br><span>    LOGPFSM(conn->lcls.fi, "=== HERE IS WHERE WE DISABLE LCLS(%s)\n",</span><br><span>               bsc_lcls_mode_name(conn->sccp.msc->lcls_mode));</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/14143">change 14143</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/14143"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ib1a7d825690db782a5d14f2d8817acf6cb6a52ea </div>
<div style="display:none"> Gerrit-Change-Number: 14143 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Pau Espin Pedrol <pespin@sysmocom.de> </div>