diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-08 16:40:46 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-01-08 16:40:46 +0000 |
commit | 2f8bd71129cd2e0fccb7026a223a7956fe111fda (patch) | |
tree | e8f43c4481420da7f2b866720e548ce5df453d80 | |
parent | 25de226523e20fca743911cb9418259b634e7698 (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.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35426 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | epan/dissectors/packet-jxta.c | 16 |
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; } |