Fix a regression, as -1 can no longer means until the end of the tvb

Change-Id: I2bbb9c5f62984f0365a3cad6b60401ee70418e74
Reviewed-on: https://code.wireshark.org/review/2158
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
This commit is contained in:
Martin Mathieson 2014-06-12 13:42:35 +01:00
parent 5a49913c49
commit d17aa36833
1 changed files with 2 additions and 2 deletions

View File

@ -2215,7 +2215,7 @@ static void dissect_rlc_lte_um(tvbuff_t *tvb, packet_info *pinfo,
}
/* Final data element */
show_PDU_in_tree(pinfo, tree, tvb, offset, -1, p_rlc_lte_info,
show_PDU_in_tree(pinfo, tree, tvb, offset, tvb_reported_length_remaining(tvb, offset), p_rlc_lte_info,
((s_number_of_extensions == 0) ? first_includes_start : TRUE) && last_includes_end,
(s_number_of_extensions == 0) ? reassembly_info : NULL,
seq_anal_state);
@ -2610,7 +2610,7 @@ static void dissect_rlc_lte_am(tvbuff_t *tvb, packet_info *pinfo,
/* Final data element */
if (tvb_reported_length_remaining(tvb, offset) > 0) {
show_PDU_in_tree(pinfo, tree, tvb, offset, -1, p_rlc_lte_info,
show_PDU_in_tree(pinfo, tree, tvb, offset, tvb_reported_length_remaining(tvb, offset), p_rlc_lte_info,
((s_number_of_extensions == 0) ? first_includes_start : TRUE) && last_includes_end,
(s_number_of_extensions == 0) ? reassembly_info : NULL,
seq_anal_state);