aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-jxta.c
diff options
context:
space:
mode:
authorbondolo <bondolo@f5534014-38df-0310-8fa8-9805f1628bb7>2007-12-05 04:20:21 +0000
committerbondolo <bondolo@f5534014-38df-0310-8fa8-9805f1628bb7>2007-12-05 04:20:21 +0000
commit91a397a8f610d19dc7a8327acf6dcd5c4c938cf4 (patch)
tree1ea7de36bad319e86b141f3099a509fcd98b74e8 /epan/dissectors/packet-jxta.c
parent00379557be84978d8e2f880e19afe75c61b1d156 (diff)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23758 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-jxta.c')
-rw-r--r--epan/dissectors/packet-jxta.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/epan/dissectors/packet-jxta.c b/epan/dissectors/packet-jxta.c
index a49bcd080f..eac226ade7 100644
--- a/epan/dissectors/packet-jxta.c
+++ b/epan/dissectors/packet-jxta.c
@@ -670,10 +670,6 @@ static int dissect_jxta_udp(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tr
break;
}
- /* Redo header processing, this time populating the tree. */
- processed = dissect_jxta_message_framing(jxta_message_framing_tvb, pinfo, tree, &content_length, &content_type);
-
-
offset += processed;
available = tvb_reported_length_remaining(tvb, offset);
@@ -710,20 +706,13 @@ static int dissect_jxta_udp(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tr
guint64 content_length = -1;
gchar *content_type = NULL;
tvbuff_t *jxta_message_tvb;
- gint processed = 0;
proto_tree_add_item(jxta_udp_tree, hf_jxta_udpsig, tvb, tree_offset, sizeof(JXTA_UDP_SIG), FALSE);
tree_offset += sizeof(JXTA_UDP_SIG);
jxta_message_framing_tvb = tvb_new_subset(tvb, tree_offset, -1, -1);
- processed = dissect_jxta_message_framing(jxta_message_framing_tvb, pinfo, NULL, &content_length, &content_type);
-
- if ((0 == processed) || (NULL == content_type) || (content_length <= 0) || (content_length > UINT_MAX)) {
- /** Buffer did not begin with valid framing headers */
- return 0;
- }
- tree_offset += dissect_jxta_message_framing(jxta_message_framing_tvb, pinfo, tree, &content_length, &content_type);
+ tree_offset += dissect_jxta_message_framing(jxta_message_framing_tvb, pinfo, jxta_tree, &content_length, &content_type);
jxta_message_tvb = tvb_new_subset(tvb, tree_offset, (gint) content_length, (gint) content_length);