From 6e3732104203ed72004d697686380e20db0898ef Mon Sep 17 00:00:00 2001 From: Chris Maynard Date: Tue, 10 Dec 2013 03:33:50 +0000 Subject: Reject the packet if data is NULL. svn path=/trunk/; revision=53899 --- epan/dissectors/packet-fcfcs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'epan/dissectors/packet-fcfcs.c') 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"); -- cgit v1.2.3