diff options
author | Anders Broman <anders.broman@ericsson.com> | 2013-03-18 06:04:09 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2013-03-18 06:04:09 +0000 |
commit | c2976ac50824db30343fa2cee70d05ac83423ef3 (patch) | |
tree | dfdc963c67873edbfeae35145696fa7399a85333 /epan/dissectors/packet-btbnep.c | |
parent | 5726546c6330267c15b9b06814f0c73b5c7aa5ba (diff) |
From Michal Labedzki:
Fix issues discovered by cppcheck
Also use global OUI array in AVRCP.
Thanks to Evan Huus for cppcheck.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8304
svn path=/trunk/; revision=48387
Diffstat (limited to 'epan/dissectors/packet-btbnep.c')
-rw-r--r-- | epan/dissectors/packet-btbnep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-btbnep.c b/epan/dissectors/packet-btbnep.c index 18372cc901..acb99caebe 100644 --- a/epan/dissectors/packet-btbnep.c +++ b/epan/dissectors/packet-btbnep.c @@ -281,7 +281,6 @@ dissect_btbnep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree *addr_tree = NULL; const guint8 *src_addr; const guint8 *dst_addr; - tvbuff_t *next_tvb; col_set_str(pinfo->cinfo, COL_PROTOCOL, "BNEP"); col_clear(pinfo->cinfo, COL_INFO); @@ -373,6 +372,8 @@ dissect_btbnep(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) ethertype(type, tvb, offset, pinfo, tree, btbnep_tree, hf_btbnep_type, 0, 0); } else { + tvbuff_t *next_tvb; + next_tvb = tvb_new_subset_remaining(tvb, offset); call_dissector(data_handle, next_tvb, pinfo, tree); } |