aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-clnp.c
diff options
context:
space:
mode:
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,