<p>lynxis lazus has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/25384">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ns2: fix a crash when receiving a SIZE while configured<br><br>The ns2_vc_force_unconfigured() needs to be protected otherwise it would free<br>gss->nsvc which will be used later. It further would run into another<br>SNS failure which is wrong too.<br><br>Change-Id: If14b9e3fcd5d139457b10d06517302168091d8d8<br>---<br>M src/gb/gprs_ns2_sns.c<br>1 file changed, 2 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/84/25384/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gb/gprs_ns2_sns.c b/src/gb/gprs_ns2_sns.c</span><br><span>index 7619b66..0afc06e 100644</span><br><span>--- a/src/gb/gprs_ns2_sns.c</span><br><span>+++ b/src/gb/gprs_ns2_sns.c</span><br><span>@@ -3021,7 +3021,9 @@</span><br><span>                    /* keep the NSVC we need for SNS, but unconfigure it */</span><br><span>                      gss->sns_nsvc->sig_weight = 0;</span><br><span>                         gss->sns_nsvc->data_weight = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+                 gss->block_no_nsvc_events = true;</span><br><span>                         ns2_vc_force_unconfigured(gss->sns_nsvc);</span><br><span style="color: hsl(120, 100%, 40%);">+                  gss->block_no_nsvc_events = false;</span><br><span>                        ns2_sns_compute_local_ep_from_binds(fi);</span><br><span>             }</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/25384">change 25384</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/+/25384"/><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: If14b9e3fcd5d139457b10d06517302168091d8d8 </div>
<div style="display:none"> Gerrit-Change-Number: 25384 </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>