diff options
Diffstat (limited to 'epan/dissectors/packet-rsvp.c')
-rw-r--r-- | epan/dissectors/packet-rsvp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rsvp.c b/epan/dissectors/packet-rsvp.c index 6f939c1937..67d9b22372 100644 --- a/epan/dissectors/packet-rsvp.c +++ b/epan/dissectors/packet-rsvp.c @@ -7469,7 +7469,7 @@ dissect_rsvp_msg_tree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, /* We delay the checksum check until here so we know if the message * contained an integrity object or not */ - if (!pinfo->fragmented && ((int) tvb_length(tvb) >= msg_length)) { + if (!pinfo->fragmented && ((int) tvb_captured_length(tvb) >= msg_length)) { /* The packet isn't part of a fragmented datagram and isn't truncated, so we can checksum it. */ SET_CKSUM_VEC_TVB(cksum_vec[0], tvb, 0, msg_length); @@ -7621,7 +7621,7 @@ dissect_rsvp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSVP"); dissect_rsvp_common(tvb, pinfo, tree, FALSE); - return tvb_length(tvb); + return tvb_captured_length(tvb); } static int @@ -7630,7 +7630,7 @@ dissect_rsvp_e2ei(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* dat col_set_str(pinfo->cinfo, COL_PROTOCOL, "RSVP-E2EI"); dissect_rsvp_common(tvb, pinfo, tree, TRUE); - return tvb_length(tvb); + return tvb_captured_length(tvb); } static void |