diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-10 03:33:50 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-10 03:33:50 +0000 |
commit | 6e3732104203ed72004d697686380e20db0898ef (patch) | |
tree | 4ae1a713d229a0c6ac7b330e82727fd9bbad9586 /epan/dissectors/packet-fcfcs.c | |
parent | c5e358116c2652d18d06ad864961f03275696537 (diff) |
Reject the packet if data is NULL.
svn path=/trunk/; revision=53899
Diffstat (limited to 'epan/dissectors/packet-fcfcs.c')
-rw-r--r-- | epan/dissectors/packet-fcfcs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-fcfcs.c b/epan/dissectors/packet-fcfcs.c index f858a4f8bc..ef86c94ea7 100644 --- a/epan/dissectors/packet-fcfcs.c +++ b/epan/dissectors/packet-fcfcs.c @@ -778,7 +778,12 @@ dissect_fcfcs (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) fcfcs_conv_key_t ckey, *req_key; int opcode, failed_opcode = 0; - fc_hdr *fchdr = (fc_hdr *)data; + fc_hdr *fchdr; + + /* Reject the packet if data is NULL */ + if (data == NULL) + return 0; + fchdr = (fc_hdr *)data; /* Make entries in Protocol column and Info column on summary display */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "FC-FCS"); |