diff options
author | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-02 02:31:33 +0000 |
---|---|---|
committer | Chris Maynard <Christopher.Maynard@GTECH.COM> | 2013-12-02 02:31:33 +0000 |
commit | baf569188ac49ad38912b82d23ff241321cd654f (patch) | |
tree | abad881c1672a938cfffb5c2e893f96d5a7cddab /epan | |
parent | 9b38829b34ceda59c7a35c34f2ed071618477ef1 (diff) |
Reject the packet if data is NULL.
svn path=/trunk/; revision=53709
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-afs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/epan/dissectors/packet-afs.c b/epan/dissectors/packet-afs.c index 7c27c02b1a..199b2fb925 100644 --- a/epan/dissectors/packet-afs.c +++ b/epan/dissectors/packet-afs.c @@ -1655,6 +1655,9 @@ dissect_afs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) void (*dissector)(tvbuff_t *tvb, struct rxinfo *rxinfo, proto_tree *tree, int offset, int opcode); + /* Reject the packet if data is NULL */ + if (data == NULL) + return 0; col_set_str(pinfo->cinfo, COL_PROTOCOL, "AFS (RX)"); col_clear(pinfo->cinfo, COL_INFO); |