aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-afp.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-05-08 14:24:13 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-05-08 14:24:13 +0000
commitb438c7415f4138c0b1a7bbb9ec8b26046ec69e86 (patch)
treef1b5513ed226ac4d4e474ff04664700e47a9a32b /epan/dissectors/packet-afp.c
parent572fcbe463a088be79fb8d9539bd0d884a808a3d (diff)
From Frank Lahm:
Fixes for FPSpotlightRPC AFP dissector. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7235 svn path=/trunk/; revision=42508
Diffstat (limited to 'epan/dissectors/packet-afp.c')
-rw-r--r--epan/dissectors/packet-afp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-afp.c b/epan/dissectors/packet-afp.c
index a8184f8678..2b0ad198f5 100644
--- a/epan/dissectors/packet-afp.c
+++ b/epan/dissectors/packet-afp.c
@@ -4194,14 +4194,14 @@ spotlight_dissect_query_loop(tvbuff_t *tvb, proto_tree *tree, gint offset, guint
case SQ_TYPE_INT64:
item_query = proto_tree_add_text(tree, tvb, offset, 8, "int64");
sub_tree = proto_item_add_subtree(item_query, ett_afp_spotlight_query_line);
- j = spotlight_int64(tvb, sub_tree, offset, encoding) - 1;
+ j = spotlight_int64(tvb, sub_tree, offset, encoding);
count -= j;
offset += query_length;
break;
case SQ_TYPE_FLOAT:
item_query = proto_tree_add_text(tree, tvb, offset, 8, "float");
sub_tree = proto_item_add_subtree(item_query, ett_afp_spotlight_query_line);
- j = spotlight_float(tvb, sub_tree, offset, encoding) - 1;
+ j = spotlight_float(tvb, sub_tree, offset, encoding);
count -= j;
offset += query_length;
break;
@@ -4331,7 +4331,6 @@ dissect_spotlight(tvbuff_t *tvb, proto_tree *tree, gint offset)
offset = spotlight_dissect_query_loop(tvb, sub_tree_queries, offset, SQ_CPX_TYPE_ARRAY, INT_MAX, offset + (gint)toc_offset + 8, encoding);
/* ToC */
- offset += (gint)toc_offset;
if (toc_entries < 1) {
proto_tree_add_text(tree,
tvb,