aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-qllc.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2013-12-09 15:45:59 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2013-12-09 15:45:59 +0000
commit494d32ad2a0df16847dcec21bfb91cf7859992a5 (patch)
treef945d4effc7a576006d3c0619989b9bd63bb27d8 /epan/dissectors/packet-qllc.c
parent3be739ac8b3dea2f0de5b076a0963efd186b4a9c (diff)
Reject the packet if data is NULL.
svn path=/trunk/; revision=53882
Diffstat (limited to 'epan/dissectors/packet-qllc.c')
-rw-r--r--epan/dissectors/packet-qllc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/epan/dissectors/packet-qllc.c b/epan/dissectors/packet-qllc.c
index 1834516447..4bf30e980f 100644
--- a/epan/dissectors/packet-qllc.c
+++ b/epan/dissectors/packet-qllc.c
@@ -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.
*/