diff options
author | Guy Harris <guy@alum.mit.edu> | 2001-01-10 23:30:41 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2001-01-10 23:30:41 +0000 |
commit | c1bbd1b2771a84b3b1df6325ba92436f89283663 (patch) | |
tree | 291ebc349ddb56cde82f4c8f2aae50f1db98900b /packet-rsvp.c | |
parent | b6248efe1f55980c46777eceb5e649c7d363ba99 (diff) |
Fix call to "pntohs()" - it was missing the "pd+", so it was just
passing the offset in the packet, not a pointer into the packet, to
"pntohs()".
svn path=/trunk/; revision=2864
Diffstat (limited to 'packet-rsvp.c')
-rw-r--r-- | packet-rsvp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-rsvp.c b/packet-rsvp.c index 55eff132bc..214a6f720d 100644 --- a/packet-rsvp.c +++ b/packet-rsvp.c @@ -3,7 +3,7 @@ * * (c) Copyright Ashok Narayanan <ashokn@cisco.com> * - * $Id: packet-rsvp.c,v 1.31 2001/01/09 06:31:41 guy Exp $ + * $Id: packet-rsvp.c,v 1.32 2001/01/10 23:30:41 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1834,7 +1834,7 @@ dissect_rsvp(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) break; case 32: /* AS */ - k = pntohs(offset2+l+2); + k = pntohs(pd+offset2+l+2); ti2 = proto_tree_add_text(rsvp_object_tree, NullTVB, offset2+l, 4, "Autonomous System %d", k); |