diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-10 20:49:11 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-10 20:49:11 +0000 |
commit | b007fccec3b81b52c109c8d04f890aa0b5d0a226 (patch) | |
tree | 3590046339f0b7626114bbb21de766b88855c525 /epan/dissectors/packet-ndps.c | |
parent | 5be6dd5feb57180436e741f2abd5edd4f88a5147 (diff) | |
download | wireshark-b007fccec3b81b52c109c8d04f890aa0b5d0a226.tar.gz |
Reject the packet if data is NULL.
svn path=/trunk/; revision=53914
Diffstat (limited to 'epan/dissectors/packet-ndps.c')
-rw-r--r-- | epan/dissectors/packet-ndps.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/epan/dissectors/packet-ndps.c b/epan/dissectors/packet-ndps.c index 4c53911c0b..f64add45a4 100644 --- a/epan/dissectors/packet-ndps.c +++ b/epan/dissectors/packet-ndps.c @@ -4516,6 +4516,10 @@ dissect_ndps_ipx(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data proto_tree *ndps_tree; proto_item *ti; + /* Reject the packet if data is NULL */ + if (data == NULL) + return 0; + col_set_str(pinfo->cinfo, COL_PROTOCOL, "NDPS"); col_clear(pinfo->cinfo, COL_INFO); |