aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee802154.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-02-28 10:46:47 -0800
committerGuy Harris <guy@alum.mit.edu>2019-02-28 18:48:29 +0000
commit7bf2fbf85a083a2530901cfdf2eede1512e8529b (patch)
treecfc646d8801bfc06475981bae56908d3fc4ae786 /epan/dissectors/packet-ieee802154.c
parentbf8ca6a605424e6ee23b66ac9a45ef4818268b6d (diff)
Replace another tvb_new_subset_length_caplen() call.
tvb_new_subset_length() is sufficient, and correctly calculates the captured length of the tvbuff, rather than possibly setting it too large by setting it based on the length of the TLV header. Change-Id: I510ee6742fcbc08ae7331585a65c768e98e6b3d9 Reviewed-on: https://code.wireshark.org/review/32271 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-ieee802154.c')
-rw-r--r--epan/dissectors/packet-ieee802154.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-ieee802154.c b/epan/dissectors/packet-ieee802154.c
index 5ef5906a07..99f284fd6d 100644
--- a/epan/dissectors/packet-ieee802154.c
+++ b/epan/dissectors/packet-ieee802154.c
@@ -1869,7 +1869,7 @@ dissect_ieee802154_tap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
col_set_str(pinfo->cinfo, COL_PROTOCOL, "IEEE 802.15.4 TAP");
/* Create a new tvb subset with only the TLVs to dissect */
- tlv_tvb = tvb_new_subset_length_caplen(tvb, 4, length-4, length-4);
+ tlv_tvb = tvb_new_subset_length(tvb, 4, length - 4);
dissect_ieee802154_tap_tlvs(tlv_tvb, pinfo, info_tree);
/* Call the ieee802154 raw packet dissector. */