Reject the packet if data is NULL.

svn path=/trunk/; revision=53882
This commit is contained in:
Chris Maynard 2013-12-09 15:45:59 +00:00
parent 3be739ac8b
commit 494d32ad2a
1 changed files with 6 additions and 1 deletions

View File

@ -76,10 +76,15 @@ dissect_qllc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
{
proto_tree *qllc_tree;
proto_item *qllc_ti;
gboolean *q_bit_set = (gboolean *)data;
gboolean *q_bit_set;
guint8 addr, ctrl;
gboolean command = FALSE;
/* Reject the packet if data is NULL */
if (data == NULL)
return 0;
q_bit_set = (gboolean *)data;
/*
* If the Q bit isn't set, this is just SNA data.
*/