diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-09 15:45:59 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-09 15:45:59 +0000 |
commit | 494d32ad2a0df16847dcec21bfb91cf7859992a5 (patch) | |
tree | f945d4effc7a576006d3c0619989b9bd63bb27d8 /epan/dissectors/packet-qllc.c | |
parent | 3be739ac8b3dea2f0de5b076a0963efd186b4a9c (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.c | 7 |
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. */ |