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>
This commit is contained in:
Martin Mathieson 2018-08-06 16:40:07 +01:00
parent 28b7adfadc
commit 0720dedeff

View file

@ -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);