Add a tvb_ensure_bytes_exist(). I'm not sure if this is the correct way

to do this, but it fixes bug 38.

svn path=/trunk/; revision=14094
This commit is contained in:
Gerald Combs 2005-04-15 15:17:55 +00:00
parent 6b6dde3aa8
commit d96061b92d
1 changed files with 1 additions and 0 deletions

View File

@ -2382,6 +2382,7 @@ dissect_rpc_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
/* now we know, that RPC was shorter */
if (rpc_item) {
tvb_ensure_bytes_exist(tvb, offset, 0);
proto_item_set_end(rpc_item, tvb, offset);
}