From 0e2751238c08e2bb68e991ed809907d170083aaa Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 6 Mar 2000 19:53:44 +0000 Subject: Correctly dissect integer values, using the correct offset. svn path=/trunk/; revision=1694 --- packet-ipp.c | 6 +++--- 1 file 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 * - * $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 @@ -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])); } } -- cgit v1.2.3