<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23183">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_ns2: replace OSMO_ASSERT()<br><br>When freeing the nsvc there are cases when the NSE is still alive.<br><br>Change-Id: I4f32dee705c9886717339fe7cce5b4cd8d2c18f7<br>---<br>M src/gb/gprs_ns2.c<br>1 file changed, 3 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/83/23183/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c</span><br><span>index a79dd05..c56b0b5 100644</span><br><span>--- a/src/gb/gprs_ns2.c</span><br><span>+++ b/src/gb/gprs_ns2.c</span><br><span>@@ -1455,8 +1455,9 @@</span><br><span>              if (ns2_vc_is_unblocked(nsvc))</span><br><span>                       active_nsvcs++;</span><br><span>      }</span><br><span style="color: hsl(0, 100%, 40%);">-       /* an alive nse should always have active_nsvcs */</span><br><span style="color: hsl(0, 100%, 40%);">-      OSMO_ASSERT(active_nsvcs);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+  if (!active_nsvcs)</span><br><span style="color: hsl(120, 100%, 40%);">+            return 0;</span><br><span> </span><br><span>        active_binds = talloc_zero_array(nse, struct gprs_ns2_vc_bind*, active_nsvcs);</span><br><span>       if (!active_binds)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/23183">change 23183</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/libosmocore/+/23183"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I4f32dee705c9886717339fe7cce5b4cd8d2c18f7 </div>
<div style="display:none"> Gerrit-Change-Number: 23183 </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>