aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-frame.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>2005-08-04 13:54:46 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>2005-08-04 13:54:46 +0000
commitc8cd8f21a4431b1880ce3360553e0abd4861cf99 (patch)
tree27a5d61208c07301e13843fac71cef1a58cb686c /epan/dissectors/packet-frame.c
parent2c65361b8a25d69d560dfc88d4abf14e91cd1dbd (diff)
Exception handling fixes, and a fix to packet-frame.c,
from Richard van der Hoff. svn path=/trunk/; revision=15205
Diffstat (limited to 'epan/dissectors/packet-frame.c')
-rw-r--r--epan/dissectors/packet-frame.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-frame.c b/epan/dissectors/packet-frame.c
index 2aa4fba4e3..aa2c705b11 100644
--- a/epan/dissectors/packet-frame.c
+++ b/epan/dissectors/packet-frame.c
@@ -198,6 +198,15 @@ dissect_frame(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
0, 0, cap_len, "Capture Length: %d byte%s", cap_len,
plurality(cap_len, "", "s"));
+ /* we are going to be using proto_item_append_string() on
+ * hf_frame_protocols, and we must therefore disable the
+ * TRY_TO_FAKE_THIS_ITEM() optimisation for the tree by
+ * setting it as visible.
+ *
+ * See proto.h for details.
+ */
+ PTREE_DATA(fh_tree)->visible=1;
+
ti = proto_tree_add_string(fh_tree, hf_frame_protocols, tvb,
0, 0, "");
PROTO_ITEM_SET_GENERATED(ti);