aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-radiotap.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-radiotap.c')
-rw-r--r--epan/dissectors/packet-radiotap.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-radiotap.c b/epan/dissectors/packet-radiotap.c
index 28ef6ce04c..14ecae904e 100644
--- a/epan/dissectors/packet-radiotap.c
+++ b/epan/dissectors/packet-radiotap.c
@@ -793,7 +793,7 @@ dissect_radiotap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_tree *radiotap_tree = NULL;
proto_tree *pt, *present_tree = NULL;
proto_tree *ft, *flags_tree = NULL;
- proto_item *ti = NULL;
+ proto_item *ti = NULL, *hidden_item;
proto_item *hdr_fcs_ti = NULL;
int hdr_fcs_offset = 0;
int align_offset, offset;
@@ -1263,8 +1263,9 @@ dissect_radiotap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
else {
proto_item_append_text(hdr_fcs_ti,
" [incorrect, should be 0x%08x]", calc_fcs);
- proto_tree_add_boolean_hidden(radiotap_tree, hf_radiotap_fcs_bad,
+ hidden_item = proto_tree_add_boolean(radiotap_tree, hf_radiotap_fcs_bad,
tvb, hdr_fcs_offset, 4, TRUE);
+ PROTO_ITEM_SET_HIDDEN(hidden_item);
}
}
else {