aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-02-03 16:38:51 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-02-03 16:39:12 +0700
commit3568fcfa7d3023df79e6c1a2d8135952943e6329 (patch)
treede32165d705a3de6961545288694070742383080
parent3898cd684337867bc7724fd8ef6e949b7f65e4a1 (diff)
gprs_bssgp_pcu: fixup: fix length check in gprs_bssgp_pcu_rx_dl_ud()
-rw-r--r--src/gprs_bssgp_pcu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index 080245a7..ccf233a0 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -108,7 +108,7 @@ static int gprs_bssgp_pcu_rx_dl_ud(struct msgb *msg, struct tlv_parsed *tp)
data = (uint8_t *) TLVP_VAL(tp, BSSGP_IE_LLC_PDU);
len = TLVP_LEN(tp, BSSGP_IE_LLC_PDU);
- if (len > sizeof(LLC_MAX_LEN))
+ if (len > LLC_MAX_LEN)
{
LOGP(DBSSGP, LOGL_NOTICE, "BSSGP TLLI=0x%08x Rx UL-UD IE_LLC_PDU too large\n", tlli);
return bssgp_tx_status(BSSGP_CAUSE_COND_IE_ERR, NULL, msg);