aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-pgm.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2015-04-19 15:39:40 -0400
committerAnders Broman <a.broman58@gmail.com>2015-04-20 06:36:38 +0000
commit8844fbc4f64ebef23b70b6d0327b54f328b3e876 (patch)
tree34f23d7ad709e3d2bdfe2140c501c537f3b94d6d /epan/dissectors/packet-pgm.c
parentd47373f27838236919c4e0938b59c209d801b6a7 (diff)
replace some deprecated tvb_length calls
Change-Id: I18152e75aec2eedccad4d393c1b4b493cd7b406d Reviewed-on: https://code.wireshark.org/review/8125 Reviewed-by: Evan Huus <eapache@gmail.com> Petri-Dish: Evan Huus <eapache@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-pgm.c')
-rw-r--r--epan/dissectors/packet-pgm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-pgm.c b/epan/dissectors/packet-pgm.c
index df118ab622..1a44dadc45 100644
--- a/epan/dissectors/packet-pgm.c
+++ b/epan/dissectors/packet-pgm.c
@@ -918,7 +918,7 @@ dissect_pgm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
ptvcursor_current_offset(cursor), 2, pgmhdr_cksum, "not available");
} else {
reportedlen = tvb_reported_length(tvb);
- pgmlen = tvb_length(tvb);
+ pgmlen = tvb_captured_length(tvb);
if (pgm_check_checksum && pgmlen >= reportedlen) {
vec_t cksum_vec[1];
guint16 computed_cksum;