aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-jxta.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-01-08 16:40:46 +0000
committerGuy Harris <guy@alum.mit.edu>2011-01-08 16:40:46 +0000
commit132f13c2f91063ab54fa7eff80a65dde508bd13e (patch)
treee8f43c4481420da7f2b866720e548ce5df453d80 /epan/dissectors/packet-jxta.c
parentea4ac173d0e97206bede503b8551df76b40b19e0 (diff)
If the lack of a peer conversation is a bug, use one of the
dissector-bug macros. If it's just that we're missing some packets, we should handle that as best we can and, if there's stuff we can't do, maybe put something into the protocol summary or tree saying "not enough information". Don't just spit out a warning message which the user might not even see. svn path=/trunk/; revision=35426
Diffstat (limited to 'epan/dissectors/packet-jxta.c')
-rw-r--r--epan/dissectors/packet-jxta.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/epan/dissectors/packet-jxta.c b/epan/dissectors/packet-jxta.c
index 0459532a27..ae3045aa73 100644
--- a/epan/dissectors/packet-jxta.c
+++ b/epan/dissectors/packet-jxta.c
@@ -749,19 +749,17 @@ static conversation_t *get_peer_conversation(packet_info * pinfo, jxta_stream_co
{
conversation_t * peer_conversation = NULL;
- if ((AT_NONE != tpt_conv_data->initiator_address.type) && (AT_NONE != tpt_conv_data->receiver_address.type)) {
- peer_conversation = find_conversation(pinfo->fd->num, &tpt_conv_data->initiator_address, &tpt_conv_data->receiver_address,
+ if ((AT_NONE != tpt_conv_data->initiator_address.type) && (AT_NONE != tpt_conv_data->receiver_address.type)) {
+ peer_conversation = find_conversation(pinfo->fd->num, &tpt_conv_data->initiator_address, &tpt_conv_data->receiver_address,
PT_NONE, 0, 0, NO_PORT_B);
- if (create && (NULL == peer_conversation)) {
- peer_conversation = conversation_new(pinfo->fd->num, &tpt_conv_data->initiator_address,
+ if (create && (NULL == peer_conversation)) {
+ peer_conversation = conversation_new(pinfo->fd->num, &tpt_conv_data->initiator_address,
&tpt_conv_data->receiver_address, PT_NONE, 0, 0, NO_PORT_B);
- conversation_set_dissector(peer_conversation, stream_jxta_handle);
- }
+ conversation_set_dissector(peer_conversation, stream_jxta_handle);
+ }
- } else {
- g_warning("Uninitialized peer conversation");
- }
+ }
return peer_conversation;
}