aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-btsap.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-btsap.c')
-rw-r--r--epan/dissectors/packet-btsap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-btsap.c b/epan/dissectors/packet-btsap.c
index 8d8eb77bd8..94b82ac50a 100644
--- a/epan/dissectors/packet-btsap.c
+++ b/epan/dissectors/packet-btsap.c
@@ -574,8 +574,8 @@ dissect_btsap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U
tvb, offset, 0, "Too many parameters");
}
- if (tvb_length(tvb) > offset)
- proto_tree_add_expert(tree, pinfo, &ei_unexpected_data, tvb, offset, -1);
+ if (tvb_reported_length(tvb) > offset)
+ proto_tree_add_expert(tree, pinfo, &ei_unexpected_data, tvb, offset, tvb_reported_length_remaining(tvb, offset));
return offset;
}