aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mac-nr.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2018-08-06 16:40:07 +0100
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2018-08-09 16:07:49 +0000
commit0720dedeff69536a721bc7c331c190290c8fb1ee (patch)
tree35d8001a0f406dc1ecafec575ab2a007cb912dcf /epan/dissectors/packet-mac-nr.c
parent28b7adfadccc1f5a07cfc3f0466fea1d42e18f12 (diff)
MAC-NR: Fix length tracking of SRS ACT/DEACT CE
Change-Id: I21384e5223ed11f6139a370fafd9026a0c444dd1 Reviewed-on: https://code.wireshark.org/review/28996 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Diffstat (limited to 'epan/dissectors/packet-mac-nr.c')
-rw-r--r--epan/dissectors/packet-mac-nr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mac-nr.c b/epan/dissectors/packet-mac-nr.c
index aa25ec9cd5..e7fd570976 100644
--- a/epan/dissectors/packet-mac-nr.c
+++ b/epan/dissectors/packet-mac-nr.c
@@ -1689,7 +1689,7 @@ static void dissect_ulsch_or_dlsch(tvbuff_t *tvb, packet_info *pinfo, proto_tree
tvb, offset, 1, ENC_NA);
offset++;
if (ad) {
- guint length = c ? SDU_length / 2 : SDU_length;
+ guint length = c ? (SDU_length-2) / 2 + 2: SDU_length;
while (offset - start_offset < length) {
proto_tree_add_item(subheader_tree, hf_mac_nr_control_sp_srs_act_deact_f,
tvb, offset, 1, ENC_NA);