aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h221_nonstd.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors/packet-h221_nonstd.c')
-rw-r--r--epan/dissectors/packet-h221_nonstd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-h221_nonstd.c b/epan/dissectors/packet-h221_nonstd.c
index 3ac0ab30b6..cd275d6b6a 100644
--- a/epan/dissectors/packet-h221_nonstd.c
+++ b/epan/dissectors/packet-h221_nonstd.c
@@ -58,11 +58,11 @@ dissect_ms_nonstd(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
gint tvb_len;
guint16 codec_value, codec_extra;
- it=proto_tree_add_protocol_format(tree, proto_nonstd, tvb, 0, tvb_length(tvb), "Microsoft NonStd");
+ it=proto_tree_add_protocol_format(tree, proto_nonstd, tvb, 0, tvb_captured_length(tvb), "Microsoft NonStd");
tr=proto_item_add_subtree(it, ett_nonstd);
- tvb_len = tvb_length(tvb);
+ tvb_len = tvb_captured_length(tvb);
/*
* XXX - why do this test? Are there any cases where throwing