Reject the packet if data is NULL.

svn path=/trunk/; revision=53954
This commit is contained in:
Chris Maynard 2013-12-11 23:04:09 +00:00
parent 8cacdfa8ce
commit a2459dc786
1 changed files with 8 additions and 0 deletions

View File

@ -1315,6 +1315,10 @@ dissect_asp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data)
guint8 fn;
int len;
/* Reject the packet if data is NULL */
if (data == NULL)
return 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "ASP");
col_clear(pinfo->cinfo, COL_INFO);
@ -1460,6 +1464,10 @@ dissect_atp_zip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data)
guint16 count;
guint8 len;
/* Reject the packet if data is NULL */
if (data == NULL)
return 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZIP");
col_clear(pinfo->cinfo, COL_INFO);