diff options
author | Olivier Biot <obiot.ethereal@gmail.com> | 2004-02-05 19:19:05 +0000 |
---|---|---|
committer | Olivier Biot <obiot.ethereal@gmail.com> | 2004-02-05 19:19:05 +0000 |
commit | d2d98c3891eac366c7f78223603111417d385965 (patch) | |
tree | 52577da8e6b63d31b74dd98ea15d196455a2ffa0 /packet-h225.c | |
parent | d5325a89b05a4dced4d0c02185d1f182debcd1c6 (diff) |
From Martin Regner (patch from Anders Broman):
Calculate the correct offset for fastStart (bits, not bytes).
svn path=/trunk/; revision=9985
Diffstat (limited to 'packet-h225.c')
-rw-r--r-- | packet-h225.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packet-h225.c b/packet-h225.c index ae71a85037..e9e3c1249a 100644 --- a/packet-h225.c +++ b/packet-h225.c @@ -4,7 +4,7 @@ * * Maintained by Andreas Sikkema (andreas.sikkema@philips.com) * - * $Id: packet-h225.c,v 1.27 2004/01/09 00:56:03 guy Exp $ + * $Id: packet-h225.c,v 1.28 2004/02/05 19:19:05 obiot Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -5016,13 +5016,17 @@ static int dissect_h225_fastStart_item(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { guint32 length; + guint32 newoffset; offset=dissect_per_length_determinant(tvb, offset, pinfo, tree, hf_h225_fastStart_item_length, &length); + newoffset=offset + (length<<3); /* please note that offset is in bits in + PER dissectors, but the item length + is in octets */ offset=dissect_h245_OpenLogicalChannel(tvb, offset, pinfo, tree); contains_faststart = TRUE; - return offset; + return newoffset; } static int |