diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-22 17:19:23 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-06-23 00:19:41 +0000 |
commit | 958cef5d68f4e18fc648a0bbb30408eb206fb0ef (patch) | |
tree | f49f047e15a9bc811499efee611c99118ecd1e36 /epan/dissectors/packet-dvb-s2-bb.c | |
parent | 67ab8a059c489022aebe0e27d1f937c7b6abad06 (diff) |
Remove more deprecated tvb_length
Change-Id: Iac23a6c804ad3720d37186559477909b2ff33eb2
Reviewed-on: https://code.wireshark.org/review/9042
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-dvb-s2-bb.c')
-rw-r--r-- | epan/dissectors/packet-dvb-s2-bb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-dvb-s2-bb.c b/epan/dissectors/packet-dvb-s2-bb.c index 645d95c65f..add5c388e0 100644 --- a/epan/dissectors/packet-dvb-s2-bb.c +++ b/epan/dissectors/packet-dvb-s2-bb.c @@ -700,7 +700,7 @@ static gboolean test_dvb_s2_crc(tvbuff_t *tvb, guint offset) { guint8 input8; /* only check BB Header and return */ - if (tvb_length(tvb) < (offset + DVB_S2_BB_HEADER_LEN)) + if (tvb_captured_length(tvb) < (offset + DVB_S2_BB_HEADER_LEN)) return FALSE; input8 = tvb_get_guint8(tvb, offset + DVB_S2_BB_OFFS_CRC); @@ -820,7 +820,7 @@ static int dissect_dvb_s2_modeadapt(tvbuff_t *tvb, packet_info *pinfo, proto_tre guint8 byte; /* Check that there's enough data */ - if (tvb_length(tvb) < 1) + if (tvb_captured_length(tvb) < 1) return 0; /* Check if first byte is valid for this dissector */ |