aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/cdt
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2013-12-04 09:39:19 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2013-12-04 09:39:19 +0000
commit470a022c6dc1331083e12eaf8837ffe2bbd813c9 (patch)
tree14a880c46854dfc67e39a616ee8f1aeac74f9e29 /asn1/cdt
parent55546d5123cd8205f8ffa4ca1a48b8893b3e0ffd (diff)
Fix for dissecting cdt without having a tree.
svn path=/trunk/; revision=53777
Diffstat (limited to 'asn1/cdt')
-rw-r--r--asn1/cdt/packet-cdt-template.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/asn1/cdt/packet-cdt-template.c b/asn1/cdt/packet-cdt-template.c
index f9e4e7c386..14549e4121 100644
--- a/asn1/cdt/packet-cdt-template.c
+++ b/asn1/cdt/packet-cdt-template.c
@@ -84,6 +84,8 @@ void dissect_cdt (tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
if (parent_tree) {
cdt_item = proto_tree_add_item (parent_tree, proto_cdt, tvb, 0, -1, ENC_NA);
tree = proto_item_add_subtree (cdt_item, ett_cdt_CompressedData);
+ } else {
+ cdt_item = NULL;
}
col_set_str (pinfo->cinfo, COL_PROTOCOL, "CDT");