diff options
author | Dario Lombardo <lomato@gmail.com> | 2014-06-17 17:49:26 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2014-06-18 14:20:32 +0000 |
commit | 021e7afc9fcba09094d0e2143cc434a34e3b09dc (patch) | |
tree | fa0f1cf92d649f2773d63ba35f67c8722e31fb38 /epan/dissectors/packet-hci_usb.c | |
parent | 246fe2ca4c67d8c98caa84e2f57694f6322e2f96 (diff) |
Fixup: tvb_ensure_length_remaining -> tvb_ensure_captured_length_remaining
Change-Id: I0228f3b6b7067bc0ce51f9d359f99fd18feb2b66
Reviewed-on: https://code.wireshark.org/review/2378
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-hci_usb.c')
-rw-r--r-- | epan/dissectors/packet-hci_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-hci_usb.c b/epan/dissectors/packet-hci_usb.c index fd94cd9080..f3f235d6c5 100644 --- a/epan/dissectors/packet-hci_usb.c +++ b/epan/dissectors/packet-hci_usb.c @@ -211,7 +211,7 @@ dissect_hci_usb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) } } - fragment_info->remaining_length -= tvb_ensure_length_remaining(tvb, offset); + fragment_info->remaining_length -= tvb_ensure_captured_length_remaining(tvb, offset); fragment_add_seq_check(&hci_usb_reassembly_table, tvb, offset, pinfo, session_id, NULL, @@ -232,7 +232,7 @@ dissect_hci_usb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) pitem = proto_tree_add_item(ttree, hf_bthci_usb_packet_complete, tvb, offset, -1, ENC_NA); PROTO_ITEM_SET_GENERATED(pitem); - if (reassembled->len > tvb_ensure_length_remaining(tvb, offset)) { + if (reassembled->len > tvb_ensure_captured_length_remaining(tvb, offset)) { next_tvb = process_reassembled_data(tvb, 0, pinfo, "Reassembled HCI_USB", reassembled, &hci_usb_msg_frag_items, |