diff options
author | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-10-02 08:33:38 +0000 |
---|---|---|
committer | sahlberg <sahlberg@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-10-02 08:33:38 +0000 |
commit | 8b7a4c94676ec1b2599707bc298e695122f9c976 (patch) | |
tree | 09f010665c8db5aedfa5154c08e8f6a880b3b173 /epan/dissectors/packet-jxta.c | |
parent | ad76584547c618b86b4499bb3ae31e887b9ad0d5 (diff) |
coverity 263 check if variable is null before dereferencing it
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23046 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-jxta.c')
-rw-r--r-- | epan/dissectors/packet-jxta.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dissectors/packet-jxta.c b/epan/dissectors/packet-jxta.c index 4bc8e06042..0b392d6cb6 100644 --- a/epan/dissectors/packet-jxta.c +++ b/epan/dissectors/packet-jxta.c @@ -862,8 +862,9 @@ static int dissect_jxta_stream(tvbuff_t * tvb, packet_info * pinfo, proto_tree * if (NULL != tpt_conversation) { tpt_conv_data = (jxta_stream_conversation_data *) conversation_get_proto_data(tpt_conversation, proto_jxta); - - peer_conversation = get_peer_conversation(pinfo, tpt_conv_data, TRUE); + if (tpt_conv_data) { + peer_conversation = get_peer_conversation(pinfo, tpt_conv_data, TRUE); + } } /* Use our source and destination addresses if we have them */ |