diff options
author | Evan Huus <eapache@gmail.com> | 2015-06-23 15:17:27 -0700 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2015-06-23 22:17:56 +0000 |
commit | 0a9a2554a46ce4e040dba669a3ed22f0e9ab709e (patch) | |
tree | 931067907b96dc2f2ad7bf815f28aad90f6a0f6b /epan/dissectors/packet-q931.c | |
parent | d4f6480253cf303f70c3d831098adf7582403b8f (diff) |
Remove more deprecated tvb_length calls
Change-Id: Ie137e6f4e20fe26b1a4d9510e267896219c1c631
Reviewed-on: https://code.wireshark.org/review/9075
Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-q931.c')
-rw-r--r-- | epan/dissectors/packet-q931.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-q931.c b/epan/dissectors/packet-q931.c index a8a2feb882..96024e6262 100644 --- a/epan/dissectors/packet-q931.c +++ b/epan/dissectors/packet-q931.c @@ -2748,7 +2748,7 @@ dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, * to the actual size in the frame */ if (!pinfo->can_desegment) { - info_element_len = MIN(info_element_len, tvb_length_remaining(tvb, offset + 3)); + info_element_len = MIN(info_element_len, tvb_captured_length_remaining(tvb, offset + 3)); } /* * Do we have a handle for the H.225 @@ -3109,7 +3109,7 @@ dissect_q931_tpkt_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * is one, and that the code put a TPKT header in one * segment and the rest of the PDU in another. */ - if (tvb_length(tvb) == 4) { + if (tvb_reported_length(tvb) == 4) { /* * It is - call the "dissect TPKT over a TCP stream" * routine. |