aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpeg-pat.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2012-07-24 21:24:33 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2012-07-24 21:24:33 +0000
commit295b919f5d940d3311a4d20171d38e5cd88dfb97 (patch)
tree7121ee8f8f963a6162a645a95b187ac2fca990ad /epan/dissectors/packet-mpeg-pat.c
parentfcb17c5558109d8fc3f06007a7c9ac6c087f47f6 (diff)
MPEG PAT: set the tree item's length == number of bytes dissected
don't simply assume the PAT continues until the end of the input tvb this is similar to packet_dvb_ait.c I'll change this for other tables shortly svn path=/trunk/; revision=43969
Diffstat (limited to 'epan/dissectors/packet-mpeg-pat.c')
-rw-r--r--epan/dissectors/packet-mpeg-pat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dissectors/packet-mpeg-pat.c b/epan/dissectors/packet-mpeg-pat.c
index 1afabb6093..b7b9cce2fa 100644
--- a/epan/dissectors/packet-mpeg-pat.c
+++ b/epan/dissectors/packet-mpeg-pat.c
@@ -123,7 +123,8 @@ dissect_mpeg_pat(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
- packet_mpeg_sect_crc(tvb, pinfo, mpeg_pat_tree, 0, offset);
+ offset += packet_mpeg_sect_crc(tvb, pinfo, mpeg_pat_tree, 0, offset);
+ proto_item_set_len(ti, offset);
}