diff options
author | Evan Huus <eapache@gmail.com> | 2015-04-19 15:39:40 -0400 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-04-20 06:36:38 +0000 |
commit | 8844fbc4f64ebef23b70b6d0327b54f328b3e876 (patch) | |
tree | 34f23d7ad709e3d2bdfe2140c501c537f3b94d6d /epan/dissectors/packet-pcp.c | |
parent | d47373f27838236919c4e0938b59c209d801b6a7 (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-pcp.c')
-rw-r--r-- | epan/dissectors/packet-pcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pcp.c b/epan/dissectors/packet-pcp.c index 95f31f173a..d6ceb2f928 100644 --- a/epan/dissectors/packet-pcp.c +++ b/epan/dissectors/packet-pcp.c @@ -1596,14 +1596,14 @@ static int dissect_pcp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tr expert_add_info(pinfo, pcp_tree, &ei_pcp_unimplemented_packet_type); break; } - return tvb_length(tvb); + return tvb_captured_length(tvb); } static int dissect_pcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { /* pass all packets through TCP-reassembly */ tcp_dissect_pdus(tvb, pinfo, tree, TRUE, PCP_HEADER_LEN, get_pcp_message_len, dissect_pcp_message, data); - return tvb_length(tvb); + return tvb_captured_length(tvb); } /* setup the dissecting */ |