<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/9582">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lib/BSSGP_Emulation: fix removal of items in ClientList<br><br>Previous the old entries aren't removed. This only had an<br>impact if two different f_TC_* were using the same imsi.<br>When the second function tried to remove the Client again from<br>the ClientList, the BSSGP_Emulation failed.<br><br>Change-Id: I71103e8f8c5f18e8ebadc057cd62d85affd7ca8c<br>---<br>M library/BSSGP_Emulation.ttcn<br>1 file changed, 8 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/82/9582/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/BSSGP_Emulation.ttcn b/library/BSSGP_Emulation.ttcn</span><br><span>index 38666b8..540413c 100644</span><br><span>--- a/library/BSSGP_Emulation.ttcn</span><br><span>+++ b/library/BSSGP_Emulation.ttcn</span><br><span>@@ -297,12 +297,18 @@</span><br><span>  for (i := 0; i < sizeof(ClientTable); i := i+1) {</span><br><span>                 if (isvalue(ClientTable[i].imsi) and ClientTable[i].imsi == imsi) {</span><br><span>                  if (ClientTable[i].comp_ref != vc_conn) {</span><br><span style="color: hsl(0, 100%, 40%);">-                               setverdict(fail, "Cannot unregister IMSI ", imsi, " registred to ",</span><br><span style="color: hsl(120, 100%, 40%);">+                               setverdict(fail, "Cannot unregister index=", i, " IMSI ", imsi, " registred to ",</span><br><span>                                         ClientTable[i].comp_ref, " from ", vc_conn);</span><br><span>                            self.stop;</span><br><span>                   }</span><br><span>                    log("Removing Client IMSI=", imsi, ", index=", i);</span><br><span style="color: hsl(0, 100%, 40%);">-                  ClientTable[i] := { -, omit, -, -, - };</span><br><span style="color: hsl(120, 100%, 40%);">+                       ClientTable[i] := {</span><br><span style="color: hsl(120, 100%, 40%);">+                           tlli := -,</span><br><span style="color: hsl(120, 100%, 40%);">+                            tlli_old := omit,</span><br><span style="color: hsl(120, 100%, 40%);">+                             imsi := ''H,</span><br><span style="color: hsl(120, 100%, 40%);">+                          cell_id := -,</span><br><span style="color: hsl(120, 100%, 40%);">+                         comp_ref := -,</span><br><span style="color: hsl(120, 100%, 40%);">+                                llc := - };</span><br><span>                  return;</span><br><span>              }</span><br><span>    }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/9582">change 9582</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/9582"/><meta itemprop="name" content="View Change"/></div></div>

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