diff options
author | Darien Spencer <cusneud@mail.com> | 2017-11-17 13:09:39 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2017-11-17 14:02:12 +0000 |
commit | 584c478751db133ee416393a77edfc8c32b8101d (patch) | |
tree | 19b96cd7c5172e5390c041f4795d335f1633249b /epan | |
parent | 7f327cc5800817b7c443616235c91ba2c82e7860 (diff) |
fp: Fix mac TVB for edch t1
Using the '_caplen' function with length of -1 leads to a "truncated RLC" error.
Change-Id: I5a5f650b244de1167ff7110558ad0559d0422103
Reviewed-on: https://code.wireshark.org/review/24462
Petri-Dish: Anders Broman <a.broman58@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-umts_fp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c index c18749a864..bb3e8f849d 100644 --- a/epan/dissectors/packet-umts_fp.c +++ b/epan/dissectors/packet-umts_fp.c @@ -2914,8 +2914,8 @@ dissect_e_dch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, tvbuff_t *next_tvb; pinfo->fd->subnum = macd_idx; /* set subframe number to current TB */ /* create new TVB and pass further on */ - next_tvb = tvb_new_subset_length_caplen(tvb, offset + bit_offset/8, - ((bit_offset % 8) + size + 7) / 8, -1); + next_tvb = tvb_new_subset_length(tvb, offset + bit_offset/8, + ((bit_offset % 8) + size + 7) / 8); /*This was all previously stored in [0] rather than [macd_idx] and cur_tb wasn't updated!*/ |