aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2022-05-07 18:50:44 -0700
committerGuy Harris <gharris@sonic.net>2022-05-07 18:50:44 -0700
commit8f1cf0176c578cddf31eb0f3ba7f558874fda022 (patch)
tree84326d747ce9b2270beff90e2ec31fa9b36e15cc /epan/dissectors
parent8f4d38b776a744a9cea8b9b043b16dcef4d4fe59 (diff)
USBLL: create the top-level item using the regitered protocol.
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-usbll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-usbll.c b/epan/dissectors/packet-usbll.c
index cc935a532b..d1fe27526e 100644
--- a/epan/dissectors/packet-usbll.c
+++ b/epan/dissectors/packet-usbll.c
@@ -1860,7 +1860,8 @@ dissect_usbll_packet(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree,
guint32 pid;
const gchar *str;
- tree = proto_tree_add_subtree(parent_tree, tvb, offset, -1, ett_usbll, &item, "USB Packet");
+ item = proto_tree_add_item(parent_tree, proto_usbll, tvb, offset, -1, ENC_NA);
+ tree = proto_item_add_subtree(item, ett_usbll);
item = proto_tree_add_item_ret_uint(tree, hf_usbll_pid, tvb, offset, 1, ENC_LITTLE_ENDIAN, &pid);
offset++;