Reject the packet if data is NULL.

svn path=/trunk/; revision=53709
daniel/osmux
Chris Maynard 2013-12-02 02:31:33 +00:00
parent 9b38829b34
commit baf569188a
1 changed files with 3 additions and 0 deletions

View File

@ -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);