diff options
Diffstat (limited to 'epan/dissectors/packet-http2.c')
-rw-r--r-- | epan/dissectors/packet-http2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-http2.c b/epan/dissectors/packet-http2.c index 8b5787a691..44f1343c6c 100644 --- a/epan/dissectors/packet-http2.c +++ b/epan/dissectors/packet-http2.c @@ -1348,7 +1348,7 @@ dissect_body_data(proto_tree *tree, packet_info *pinfo, tvbuff_t *tvb, if (content_type != NULL) { /* add it to STREAM level */ - proto_tree *ptree = tree->parent != NULL ? tree->parent : tree; + proto_tree *ptree = proto_tree_get_parent_tree(tree); dissector_try_string(media_type_dissector_table, content_type, tvb_new_subset_length(tvb, start, length), pinfo, ptree, NULL); } |