summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libsmb/smb_seal.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/libsmb/smb_seal.c b/source3/libsmb/smb_seal.c
index bf7f337a97..7a27f88a2e 100644
--- a/source3/libsmb/smb_seal.c
+++ b/source3/libsmb/smb_seal.c
@@ -54,8 +54,8 @@ NTSTATUS common_ntlm_decrypt_buffer(NTLMSSP_STATE *ntlmssp_state, char *buf)
status = ntlmssp_unseal_packet(ntlmssp_state,
(unsigned char *)buf + 8, /* 4 byte len + 0xFF 'S' 'M' 'B' */
buf_len - 8,
- (unsigned char *)buf,
- buf_len,
+ (unsigned char *)buf + 8,
+ buf_len - 8,
&sig);
if (!NT_STATUS_IS_OK(status)) {
@@ -104,8 +104,8 @@ NTSTATUS common_ntlm_encrypt_buffer(NTLMSSP_STATE *ntlmssp_state, char *buf, cha
status = ntlmssp_seal_packet(ntlmssp_state,
(unsigned char *)buf_out + 8, /* 4 byte len + 0xFF 'S' 'M' 'B' */
buf_len - 8,
- (unsigned char *)buf_out,
- buf_len,
+ (unsigned char *)buf_out + 8,
+ buf_len - 8,
&sig);
if (!NT_STATUS_IS_OK(status)) {