Throw an exception if our ACL length is flat-out wrong.

svn path=/trunk/; revision=15871
This commit is contained in:
Gerald Combs 2005-09-19 17:50:38 +00:00
parent a6ff6fb97c
commit 0e802a164b
1 changed files with 4 additions and 1 deletions

View File

@ -885,7 +885,10 @@ dissect_afsAcl (tvbuff_t * tvb, int offset,
offset += (acl_len - 38);
proto_item_set_len(item, offset-old_offset);
if (offset <= old_offset)
THROW(ReportedBoundsError);
proto_item_set_len(item, offset-old_offset);
return offset;
}