aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-01-19 19:15:33 +0000
committerGuy Harris <guy@alum.mit.edu>2002-01-19 19:15:33 +0000
commit7504382c400e1b40f46d7d48f1890d67a66a3952 (patch)
tree30d33a66a1da8257136cc135ab94a070427a9fa4
parent13fe7dd35cf30d624377aea403bdfc15f6892f3b (diff)
When dissecting an RPC array, make the initial length of the protocol
tree item for the entire array the amount of captured data remaining in the tvbuff, rather than 0, so that if we run out of captured data and throw an exception, the length is correct. svn path=/trunk/; revision=4573
-rw-r--r--packet-rpc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-rpc.c b/packet-rpc.c
index a7abcf52b7..df848b3c61 100644
--- a/packet-rpc.c
+++ b/packet-rpc.c
@@ -2,7 +2,7 @@
* Routines for rpc dissection
* Copyright 1999, Uwe Girlich <Uwe.Girlich@philosys.de>
*
- * $Id: packet-rpc.c,v 1.81 2002/01/12 10:24:47 guy Exp $
+ * $Id: packet-rpc.c,v 1.82 2002/01/19 19:15:33 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -687,7 +687,7 @@ dissect_rpc_array(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
}
lock_item = proto_tree_add_item(tree, hfindex, tvb, offset,
- 0, FALSE);
+ tvb_length_remaining(tvb, offset), FALSE);
lock_tree = proto_item_add_subtree(lock_item, ett_rpc_array);