aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-jxta.c
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2013-01-17 22:06:22 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2013-01-17 22:06:22 +0000
commitd97b358e645f22e1ce7a8765a6bfc62de0bedd88 (patch)
tree7a802699bcb544db12220a0bc106e715fe20663f /epan/dissectors/packet-jxta.c
parente19db35fab88aae345757a1a3922e9972935ca65 (diff)
Fix for bug 8212.
Disable speed optimization which otherwise cause dissector asserts due to appending text and setting lengths. svn path=/trunk/; revision=47136
Diffstat (limited to 'epan/dissectors/packet-jxta.c')
-rw-r--r--epan/dissectors/packet-jxta.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/epan/dissectors/packet-jxta.c b/epan/dissectors/packet-jxta.c
index 0932c554c0..8ddb9d61f0 100644
--- a/epan/dissectors/packet-jxta.c
+++ b/epan/dissectors/packet-jxta.c
@@ -1047,9 +1047,15 @@ static int dissect_jxta_message_framing(tvbuff_t * tvb, packet_info * pinfo, pro
*/
if (tree) {
guint tree_offset = 0;
- proto_item *framing_tree_item =
+ proto_item *framing_tree_item;
+ proto_tree *framing_tree;
+
+ /* Disable speed optimization because of use of append_text */
+ proto_tree_set_visible(tree, TRUE);
+
+ framing_tree_item =
proto_tree_add_none_format(tree, hf_jxta_framing, tvb, tree_offset, -1, "JXTA Message Framing Headers");
- proto_tree *framing_tree = proto_item_add_subtree(framing_tree_item, ett_jxta_framing);
+ framing_tree = proto_item_add_subtree(framing_tree_item, ett_jxta_framing);
/* parse framing headers */
do {