diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-11 21:06:09 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-11 21:06:09 +0000 |
commit | ae9e6dfd0fa74d38d1ca05016ba85f3dbefec9b5 (patch) | |
tree | 3105e4692e128a3af766f5f5dda16e9d5fc55894 /epan/dissectors/packet-rtmpt.c | |
parent | 212ee66ea0abaf0b2173d2e9783957655f59aa38 (diff) |
Reject the packet if data is NULL.
svn path=/trunk/; revision=53946
Diffstat (limited to 'epan/dissectors/packet-rtmpt.c')
-rw-r--r-- | epan/dissectors/packet-rtmpt.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/epan/dissectors/packet-rtmpt.c b/epan/dissectors/packet-rtmpt.c index de972ec7c4..2dcd337922 100644 --- a/epan/dissectors/packet-rtmpt.c +++ b/epan/dissectors/packet-rtmpt.c @@ -2248,7 +2248,13 @@ dissect_rtmpt_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dat conversation_t *conv; rtmpt_conv_t *rconv; int cdir; - struct tcpinfo *tcpinfo = (struct tcpinfo*)data; + struct tcpinfo *tcpinfo; + + /* Reject the packet if data is NULL */ + if (data == NULL) { + return 0; + } + tcpinfo = (struct tcpinfo*)data; conv = find_conversation(pinfo->fd->num, &pinfo->src, &pinfo->dst, pinfo->ptype, pinfo->srcport, pinfo->destport, 0); if (!conv) { |