From d96061b92d4542952e704abd507a39688047859d Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 15 Apr 2005 15:17:55 +0000 Subject: [PATCH] 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 --- epan/dissectors/packet-rpc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/epan/dissectors/packet-rpc.c b/epan/dissectors/packet-rpc.c index 933561b36d..dc227fcf07 100644 --- a/epan/dissectors/packet-rpc.c +++ b/epan/dissectors/packet-rpc.c @@ -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); }