aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mongo.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-08-19 11:10:50 +0200
committerAnders Broman <a.broman58@gmail.com>2016-08-19 11:07:20 +0000
commit2557f033f5124ad5d777c0f8a93c80b2722a80bb (patch)
treecc94b814473c5032480733919279c3bd20a76ece /epan/dissectors/packet-mongo.c
parent7f173c0458dcc40ad3e60e26a0797f7d714312dd (diff)
mongo: set on subtree when Empty Document
Change-Id: I2b6b7cf771ab7bc2f6dbc0aac5eddda2a9d2fb53 Reviewed-on: https://code.wireshark.org/review/17167 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mongo.c')
-rw-r--r--epan/dissectors/packet-mongo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mongo.c b/epan/dissectors/packet-mongo.c
index 188a1785e1..6a4edd0573 100644
--- a/epan/dissectors/packet-mongo.c
+++ b/epan/dissectors/packet-mongo.c
@@ -280,7 +280,7 @@ dissect_bson_document(tvbuff_t *tvb, packet_info *pinfo, guint offset, proto_tre
if (document_length == 5) {
/* document with length 5 is an empty document */
/* don't display the element subtree */
- proto_tree_add_item(tree, hf_mongo_document_empty, tvb, offset, document_length, ENC_NA);
+ proto_tree_add_item(doc_tree, hf_mongo_document_empty, tvb, offset, document_length, ENC_NA);
return document_length;
}