aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-clnp.c
diff options
context:
space:
mode:
authorAndersBroman <a.broman@bredband.net>2015-04-16 13:31:57 +0200
committerAnders Broman <a.broman58@gmail.com>2015-04-16 11:36:43 +0000
commit95f138e407f2afa9a3b26859116a91b99ff25fbc (patch)
tree9bd87b48f0211891026e7d77b35152c56fd0593b /epan/dissectors/packet-clnp.c
parent2d79f56df1bb779cf5628359c778adbc98dfbf6a (diff)
Replace deprecated tvb_length APIs
Change-Id: Idfd3bed012e823de544fe4de483c8f095fc7c65d Reviewed-on: https://code.wireshark.org/review/8086 Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-clnp.c')
-rw-r--r--epan/dissectors/packet-clnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-clnp.c b/epan/dissectors/packet-clnp.c
index 922b766acb..8b3a5eb6ec 100644
--- a/epan/dissectors/packet-clnp.c
+++ b/epan/dissectors/packet-clnp.c
@@ -308,7 +308,7 @@ dissect_clnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
or not - set the Info column now; we'll get an exception before
we set it otherwise. */
- if (tvb_length(tvb) < cnf_hdr_len) {
+ if (tvb_reported_length(tvb) < cnf_hdr_len) {
col_add_fstr(pinfo->cinfo, COL_INFO, "%s NPDU %s", pdu_type_string, flag_string);
}
@@ -567,7 +567,7 @@ dissect_clnp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
dissect it as a CLNP PDU. */
col_add_fstr(pinfo->cinfo, COL_INFO, "%s NPDU %s", pdu_type_string, flag_string);
- next_length = tvb_length_remaining(tvb, offset);
+ next_length = tvb_reported_length_remaining(tvb, offset);
if (next_length != 0) {
/* We have payload; dissect it. */
discpdu_tree = proto_tree_add_subtree(clnp_tree, tvb, offset, next_length,