<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15391">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">RAN_Adapter: f_ran_adapter_cleanup() check if adapter is bound<br><br>Don't use unbound references to objects, this will<br>create a dynamic test failure.<br><br>Fixes: ce0d615e12be ("sgsn: Proper shutdown of RAN_Adapter components")<br>Change-Id: I9c974a850949829728c35cf5dbd3333d0858fdef<br>---<br>M library/RAN_Adapter.ttcnpp<br>1 file changed, 4 insertions(+), 0 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/91/15391/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/library/RAN_Adapter.ttcnpp b/library/RAN_Adapter.ttcnpp</span><br><span>index f84fd34..aed31ed 100644</span><br><span>--- a/library/RAN_Adapter.ttcnpp</span><br><span>+++ b/library/RAN_Adapter.ttcnpp</span><br><span>@@ -191,6 +191,10 @@</span><br><span> }</span><br><span> </span><br><span> function f_ran_adapter_cleanup(inout RAN_Adapter ba) {</span><br><span style="color: hsl(120, 100%, 40%);">+        if (not isbound(ba)) {</span><br><span style="color: hsl(120, 100%, 40%);">+                return;</span><br><span style="color: hsl(120, 100%, 40%);">+       }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  if (ba.vc_RAN != null) {</span><br><span>             if (ba.transport == RANAP_TRANSPORT_IuCS) {</span><br><span> #ifdef RAN_EMULATION_RANAP</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/15391">change 15391</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-ttcn3-hacks/+/15391"/><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-Change-Id: I9c974a850949829728c35cf5dbd3333d0858fdef </div>
<div style="display:none"> Gerrit-Change-Number: 15391 </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>