aboutsummaryrefslogtreecommitdiffstats
path: root/packet-ipp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-03-06 19:53:44 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2000-03-06 19:53:44 +0000
commitcd91773ba04623dcf14d60f3d1f40486ff44dea2 (patch)
tree8102eccc5af117aeaabb03d186cf8fdf1c22158c /packet-ipp.c
parent4eef37302b59397007b78d93c7fa41c0977fe852 (diff)
Correctly dissect integer values, using the correct offset.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1694 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-ipp.c')
-rw-r--r--packet-ipp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-ipp.c b/packet-ipp.c
index 049f809715..431e2f30af 100644
--- a/packet-ipp.c
+++ b/packet-ipp.c
@@ -3,7 +3,7 @@
*
* Guy Harris <guy@alum.mit.edu>
*
- * $Id: packet-ipp.c,v 1.5 2000/03/06 19:41:06 guy Exp $
+ * $Id: packet-ipp.c,v 1.6 2000/03/06 19:53:44 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -468,7 +468,7 @@ add_integer_tree(proto_tree *tree, const u_char *pd, int offset,
1 + 2 + name_length + 2 + value_length,
"%.*s: %u",
name_length, &pd[offset + 1 + 2],
- pntohl(&pd[1 + 2 + name_length + 2]));
+ pntohl(&pd[offset + 1 + 2 + name_length + 2]));
}
return proto_item_add_subtree(ti, ett_ipp_attr);
}
@@ -481,7 +481,7 @@ add_integer_value(guint tag, gchar *tag_desc, proto_tree *tree,
name_length, value_length);
if (value_length == 4) {
proto_tree_add_text(tree, offset, value_length,
- "Value: %u", pntohl(&pd[1 + 2 + name_length + 2]));
+ "Value: %u", pntohl(&pd[offset]));
}
}