<p>laforge <strong>submitted</strong> this change.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17007">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">gprs_bssgp_pcu: fix invalid use of non-static data member 'frame'<br><br>The 'gprs_llc' is defined as a pure C structure with C++ specific<br>extensions (methods), so it's rather a class. Accessing its field<br>'frame' statically causes Clang to throw a compilation error:<br><br>  gprs_bssgp_pcu.cpp:111:29: error: invalid use of non-static data member 'frame'<br>      if (len > sizeof(gprs_llc::frame))<br><br>Let's avoid this and use LLC_MAX_LEN as the size limitation.<br>God knows what to expect from such a mix of C++ and C...<br><br>Change-Id: I7f84bd776cc780a45880f136107f6e0bc56241d1<br>---<br>M src/gprs_bssgp_pcu.cpp<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp</span><br><span>index f00fc94..080245a 100644</span><br><span>--- a/src/gprs_bssgp_pcu.cpp</span><br><span>+++ b/src/gprs_bssgp_pcu.cpp</span><br><span>@@ -108,7 +108,7 @@</span><br><span> </span><br><span>   data = (uint8_t *) TLVP_VAL(tp, BSSGP_IE_LLC_PDU);</span><br><span>   len = TLVP_LEN(tp, BSSGP_IE_LLC_PDU);</span><br><span style="color: hsl(0, 100%, 40%);">-   if (len > sizeof(gprs_llc::frame))</span><br><span style="color: hsl(120, 100%, 40%);">+ if (len > sizeof(LLC_MAX_LEN))</span><br><span>    {</span><br><span>            LOGP(DBSSGP, LOGL_NOTICE, "BSSGP TLLI=0x%08x Rx UL-UD IE_LLC_PDU too large\n", tlli);</span><br><span>              return bssgp_tx_status(BSSGP_CAUSE_COND_IE_ERR, NULL, msg);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/17007">change 17007</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-pcu/+/17007"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I7f84bd776cc780a45880f136107f6e0bc56241d1 </div>
<div style="display:none"> Gerrit-Change-Number: 17007 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>