diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-01-19 19:15:33 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-01-19 19:15:33 +0000 |
commit | 7504382c400e1b40f46d7d48f1890d67a66a3952 (patch) | |
tree | 30d33a66a1da8257136cc135ab94a070427a9fa4 /packet-rpc.c | |
parent | 13fe7dd35cf30d624377aea403bdfc15f6892f3b (diff) | |
download | wireshark-7504382c400e1b40f46d7d48f1890d67a66a3952.tar.gz wireshark-7504382c400e1b40f46d7d48f1890d67a66a3952.tar.bz2 wireshark-7504382c400e1b40f46d7d48f1890d67a66a3952.zip |
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
Diffstat (limited to 'packet-rpc.c')
-rw-r--r-- | packet-rpc.c | 4 |
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); |