aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rsvp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-10 23:30:41 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-10 23:30:41 +0000
commitd4875a746c92a4e5347cc7c96ff22ca540c0c75c (patch)
tree291ebc349ddb56cde82f4c8f2aae50f1db98900b /packet-rsvp.c
parent5d11fb4d2b142380e12a41e6b027f51ce17a9a71 (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()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2864 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rsvp.c')
-rw-r--r--packet-rsvp.c4
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);