From a267501b82a84ab3d5b9cb7d2f06129d5ca57e42 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Sat, 2 Nov 2013 19:20:04 +0000 Subject: Bluetooth: Use dissector data instead of pinfo->private_data. Bug 7893 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7893) From Michal Labedzki svn path=/trunk/; revision=53051 --- epan/dissectors/packet-bt3ds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'epan/dissectors/packet-bt3ds.c') diff --git a/epan/dissectors/packet-bt3ds.c b/epan/dissectors/packet-bt3ds.c index cef430c482..1773dffec2 100644 --- a/epan/dissectors/packet-bt3ds.c +++ b/epan/dissectors/packet-bt3ds.c @@ -65,6 +65,9 @@ dissect_bt3ds(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U gint offset = 0; guint8 value; + main_item = proto_tree_add_item(tree, proto_bt3ds, tvb, offset, -1, ENC_NA); + main_tree = proto_item_add_subtree(main_item, ett_bt3ds); + col_set_str(pinfo->cinfo, COL_PROTOCOL, "3DS"); switch (pinfo->p2p_dir) { @@ -80,9 +83,6 @@ dissect_bt3ds(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U break; } - main_item = proto_tree_add_item(tree, proto_bt3ds, tvb, offset, -1, ENC_NA); - main_tree = proto_item_add_subtree(main_item, ett_bt3ds); - sub_item = proto_tree_add_item(main_tree, hf_message_opcode, tvb, offset, 1, ENC_BIG_ENDIAN); value = tvb_get_guint8(tvb, offset); if (value > 0) -- cgit v1.2.3