Previously 1 byte TCP payload to port 2000 got interpreted as malformed Skinny

svn path=/trunk/; revision=35950
This commit is contained in:
Jörg Mayer 2011-02-15 12:06:39 +00:00
parent 1be49d98a5
commit 77047f4ea4
1 changed files with 4 additions and 0 deletions

View File

@ -2828,6 +2828,10 @@ dissect_skinny(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
/* check, if this is really an SKINNY packet, they start with a length + 0 */
if (tvb_length_remaining(tvb, 0) < 8)
{
return FALSE;
}
/* get relevant header information */
hdr_data_length = tvb_get_letohl(tvb, 0);
hdr_version = tvb_get_letohl(tvb, 4);