summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-json_3gpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-json_3gpp.c')
-rw-r--r--epan/dissectors/packet-json_3gpp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-json_3gpp.c b/epan/dissectors/packet-json_3gpp.c
index 662df5b..8cb4cad 100644
--- a/epan/dissectors/packet-json_3gpp.c
+++ b/epan/dissectors/packet-json_3gpp.c
@@ -271,6 +271,9 @@ dissect_3gpp_supportfeatures(tvbuff_t* tvb, proto_tree* tree, packet_info* pinfo
}
ti = proto_tree_add_item(tree, hf_json_3gpp_suppfeat, tvb, offset, len, ENC_ASCII);
+ if (len <= 0) {
+ return;
+ }
sub_tree = proto_item_add_subtree(ti, ett_json_3gpp_data);
suppfeat_tvb = tvb_new_subset_length(tvb, offset, len);