<p>fixeria has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/23671">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">l1sap: use TLVP_PRES_LEN() macro in l1sap_chan_act()<br><br>Change-Id: I6793623622fd7303d7dc22117a163a6990497c28<br>Related: SYS#4895, OS#4941<br>---<br>M src/common/l1sap.c<br>1 file changed, 1 insertion(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/71/23671/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/l1sap.c b/src/common/l1sap.c</span><br><span>index aee4717..3ebe8e1 100644</span><br><span>--- a/src/common/l1sap.c</span><br><span>+++ b/src/common/l1sap.c</span><br><span>@@ -1969,8 +1969,7 @@</span><br><span> </span><br><span>      /* osmo-pcu calls this without a valid 'tp' parameter, so we</span><br><span>          * need to make sure ew don't crash here */</span><br><span style="color: hsl(0, 100%, 40%);">- if (tp && TLVP_PRESENT(tp, GSM48_IE_CHANDESC_2) &&</span><br><span style="color: hsl(0, 100%, 40%);">-          TLVP_LEN(tp, GSM48_IE_CHANDESC_2) >= sizeof(*cd)) {</span><br><span style="color: hsl(120, 100%, 40%);">+    if (tp && TLVP_PRES_LEN(tp, GSM48_IE_CHANDESC_2, sizeof(*cd))) {</span><br><span>             cd = (struct gsm48_chan_desc *)</span><br><span>              TLVP_VAL(tp, GSM48_IE_CHANDESC_2);</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/23671">change 23671</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-bts/+/23671"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6793623622fd7303d7dc22117a163a6990497c28 </div>
<div style="display:none"> Gerrit-Change-Number: 23671 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>