From Michal Labedzki:

Bluetooth: Fix length issue described in XXX comment

Part of:
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5032

svn path=/trunk/; revision=46276
This commit is contained in:
Anders Broman 2012-11-29 12:05:55 +00:00
parent 11c4c6d4f3
commit f4de95f1e3
1 changed files with 1 additions and 1 deletions

View File

@ -999,7 +999,7 @@ dissect_vendor_dependant(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_tree_add_item(tree, hf_btavrcp_bt_pdu_id, tvb, offset, 1, ENC_BIG_ENDIAN);
} else {
if (tvb_ensure_length_remaining(tvb, offset) == 0) { /* XXX: actually: throws exception if -== 0 */
if (tvb_length_remaining(tvb, offset) == 0) {
col_append_str(pinfo->cinfo, COL_INFO, " - No PDU ID");
return offset;
}