diff options
Diffstat (limited to 'epan/dissectors/packet-tacacs.c')
-rw-r--r-- | epan/dissectors/packet-tacacs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tacacs.c b/epan/dissectors/packet-tacacs.c index e663c72997..9f5c0dd0b1 100644 --- a/epan/dissectors/packet-tacacs.c +++ b/epan/dissectors/packet-tacacs.c @@ -738,7 +738,7 @@ dissect_tacplus_body(tvbuff_t * hdr_tvb, tvbuff_t * tvb, proto_tree * tree ) dissect_tacplus_body_acct_rep( tvb, tree ); break; default: - proto_tree_add_text( tree, tvb, 0, tvb_length( tvb ), "Bogus.."); + proto_tree_add_text( tree, tvb, 0, tvb_captured_length( tvb ), "Bogus.."); break; } } @@ -888,7 +888,7 @@ dissect_tacplus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) len = tvb_get_ntohl(tvb, 8); - if(len > (guint)tvb_length_remaining(tvb, 12) && + if(len > (guint)tvb_captured_length_remaining(tvb, 12) && pinfo->can_desegment && tacplus_preference_desegment) { pinfo->desegment_offset = 0; pinfo->desegment_len = len; |