diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2005-08-04 13:54:46 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2005-08-04 13:54:46 +0000 |
commit | c8cd8f21a4431b1880ce3360553e0abd4861cf99 (patch) | |
tree | 27a5d61208c07301e13843fac71cef1a58cb686c /epan/dissectors/packet-frame.c | |
parent | 2c65361b8a25d69d560dfc88d4abf14e91cd1dbd (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.c | 9 |
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); |