diff options
Diffstat (limited to 'epan/dissectors/packet-ntlmssp.c')
-rw-r--r-- | epan/dissectors/packet-ntlmssp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/epan/dissectors/packet-ntlmssp.c b/epan/dissectors/packet-ntlmssp.c index 1e7d154e31..ab1449eb26 100644 --- a/epan/dissectors/packet-ntlmssp.c +++ b/epan/dissectors/packet-ntlmssp.c @@ -1961,7 +1961,7 @@ dissect_ntlmssp_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, voi guint32 ntlm_seq_size = 4; void *pd_save; - length = tvb_length (tvb); + length = tvb_captured_length (tvb); /* signature + seq + real payload */ encrypted_block_length = length - ntlm_magic_size; @@ -2411,7 +2411,7 @@ dissect_ntlmssp_payload_only(tvbuff_t *tvb, packet_info *pinfo, _U_ proto_tree * /* the magic ntlm is the identifier of a NTLMSSP packet that's 00 00 00 01 */ - encrypted_block_length = tvb_length (tvb); + encrypted_block_length = tvb_captured_length (tvb); /* signature + seq + real payload */ /* Setup a new tree for the NTLMSSP payload */ @@ -2470,7 +2470,7 @@ dissect_ntlmssp_verf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void * guint32 encrypted_block_length; void *pd_save; - verifier_length = tvb_length (tvb); + verifier_length = tvb_captured_length (tvb); encrypted_block_length = verifier_length - 4; if (encrypted_block_length < 12) { @@ -2559,7 +2559,7 @@ dissect_ntlmssp_encrypted_payload(tvbuff_t *data_tvb, ntlmssp_info *conv_ntlmssp_info = NULL; ntlmssp_packet_info *packet_ntlmssp_info; - encrypted_block_length = tvb_length_remaining (data_tvb, offset); + encrypted_block_length = tvb_captured_length_remaining (data_tvb, offset); fprintf(stderr, "Called dissect_ntlmssp_encrypted_payload\n"); /* Check to see if we already have state for this packet */ @@ -2689,7 +2689,7 @@ wrap_dissect_ntlmssp(tvbuff_t *tvb, int offset, packet_info *pinfo, dissect_ntlmssp(auth_tvb, pinfo, tree); - return tvb_length_remaining(tvb, offset); + return tvb_captured_length_remaining(tvb, offset); } static int |