aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpeg-pat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-02-11 20:57:26 +0000
committerGuy Harris <guy@alum.mit.edu>2012-02-11 20:57:26 +0000
commit55140956e895ef349b3111ffd0b07b7be44f68b2 (patch)
tree81f0b2f663fe5e3ad57f50d2225d6255aab33437 /epan/dissectors/packet-mpeg-pat.c
parent357ab3c5f74c7d163df0a213449f20e654c78a16 (diff)
Use the length-on-the-network, not the captured length, when deciding
how far to dissect. svn path=/trunk/; revision=40978
Diffstat (limited to 'epan/dissectors/packet-mpeg-pat.c')
-rw-r--r--epan/dissectors/packet-mpeg-pat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mpeg-pat.c b/epan/dissectors/packet-mpeg-pat.c
index 400b0d1a1f..e6dd6daf05 100644
--- a/epan/dissectors/packet-mpeg-pat.c
+++ b/epan/dissectors/packet-mpeg-pat.c
@@ -86,7 +86,7 @@ dissect_mpeg_pat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (!tree)
return;
- length = tvb_length_remaining(tvb, offset);
+ length = tvb_reported_length_remaining(tvb, offset);
proto_tree_add_item(mpeg_pat_tree, hf_mpeg_pat_transport_stream_id, tvb, offset, 2, ENC_BIG_ENDIAN);
offset += 2;