diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-03-06 19:53:44 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-03-06 19:53:44 +0000 |
commit | 0e2751238c08e2bb68e991ed809907d170083aaa (patch) | |
tree | 8102eccc5af117aeaabb03d186cf8fdf1c22158c | |
parent | 25686cfa45220eee058c83f9b18c8c94674f3818 (diff) | |
download | wireshark-0e2751238c08e2bb68e991ed809907d170083aaa.tar.gz wireshark-0e2751238c08e2bb68e991ed809907d170083aaa.tar.bz2 wireshark-0e2751238c08e2bb68e991ed809907d170083aaa.zip |
Correctly dissect integer values, using the correct offset.
svn path=/trunk/; revision=1694
-rw-r--r-- | packet-ipp.c | 6 |
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])); } } |