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-fcswils.c | |
parent | c5e358116c2652d18d06ad864961f03275696537 (diff) |
Reject the packet if data is NULL.
svn path=/trunk/; revision=53899
Diffstat (limited to 'epan/dissectors/packet-fcswils.c')
-rw-r--r-- | epan/dissectors/packet-fcswils.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-fcswils.c b/epan/dissectors/packet-fcswils.c index 27aecca580..c6dc254916 100644 --- a/epan/dissectors/packet-fcswils.c +++ b/epan/dissectors/packet-fcswils.c @@ -1771,7 +1771,12 @@ dissect_fcswils(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) proto_tree *swils_tree = NULL; guint8 isreq = FC_SWILS_REQ; tvbuff_t *next_tvb; - 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, "SW_ILS"); |