<p>osmith has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/25024">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">m3ua: reject deregistration of static routing keys<br><br>Make STP_Tests_M3UA.TC_rkm_unreg_never_registered pass.<br><br>Closes: OS#4239<br>Change-Id: Ie5d84d06e7d5d32c8a22f770f71a5449f4a78484<br>---<br>M src/xua_rkm.c<br>1 file changed, 6 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/24/25024/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/xua_rkm.c b/src/xua_rkm.c</span><br><span>index 10335ea..6abd17d 100644</span><br><span>--- a/src/xua_rkm.c</span><br><span>+++ b/src/xua_rkm.c</span><br><span>@@ -350,6 +350,12 @@</span><br><span>              return -1;</span><br><span>   }</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+ /* Reject if not dynamically allocated (OS#4239) */</span><br><span style="color: hsl(120, 100%, 40%);">+   if (!as->rkm_dyn_allocated) {</span><br><span style="color: hsl(120, 100%, 40%);">+              msgb_append_dereg_res(resp, M3UA_RKM_DEREG_ERR_NOT_REGD, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+          return -1;</span><br><span style="color: hsl(120, 100%, 40%);">+    }</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>  /* Reject if ASP is not even part of AS */</span><br><span>   if (!osmo_ss7_as_has_asp(as, asp)) {</span><br><span>                 msgb_append_dereg_res(resp, M3UA_RKM_DEREG_ERR_INVAL_RCTX, 0);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-sccp/+/25024">change 25024</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/libosmo-sccp/+/25024"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie5d84d06e7d5d32c8a22f770f71a5449f4a78484 </div>
<div style="display:none"> Gerrit-Change-Number: 25024 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>