diff options
author | Yan Burman <yanb@mellanox.com> | 2014-06-16 11:54:24 +0300 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2014-06-16 13:22:31 +0000 |
commit | 0a29589c01b5aa9ec32c6624e90b32f546090c12 (patch) | |
tree | 18cd834b3843bc76325f0c7c16e5f14c660667e7 /epan/dissectors/packet-infiniband_sdp.c | |
parent | 2274b281ef31dbee76e660644678c219ccd474ec (diff) |
Fix SDP dissector crash during fuzz testing
Change-Id: Ic133dd9440feb61964d197fa0aaacd86241f229d
Signed-off-by: Yan Burman <yanb@mellanox.com>
Reviewed-on: https://code.wireshark.org/review/2248
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-infiniband_sdp.c')
-rw-r--r-- | epan/dissectors/packet-infiniband_sdp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-infiniband_sdp.c b/epan/dissectors/packet-infiniband_sdp.c index 7f2a679d15..98d8fb47d1 100644 --- a/epan/dissectors/packet-infiniband_sdp.c +++ b/epan/dissectors/packet-infiniband_sdp.c @@ -214,6 +214,9 @@ dissect_ib_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _ } convo_data = (conversation_infiniband_data *)conversation_get_proto_data(conv, proto_infiniband); + if (!convo_data) + return 0; + if (!(convo_data->service_id & SERVICE_ID_MASK)) return 0; /* the service id doesn't match that of SDP - nothing for us to do here */ |