summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-03-21 17:13:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:48 -0500
commitd8bb69515b49808b791585d69a50c5237614b1ad (patch)
tree60392b4a744628fcf6eadcd3acc112a2588e5630 /source3
parente17a35e3ea82819da0226d6290b960a63488f02e (diff)
downloadsamba-d8bb69515b49808b791585d69a50c5237614b1ad.tar.gz
samba-d8bb69515b49808b791585d69a50c5237614b1ad.tar.bz2
samba-d8bb69515b49808b791585d69a50c5237614b1ad.zip
r21912: There's no point checksumming the packet length
this already has to be right. This makes the signed+sealed area the same as it will be with gss calls. Now to go implement them. Jeremy. (This used to be commit 80810af7d1137b3ddd3073581d5ec99fadaa81a5)
Diffstat (limited to 'source3')
-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)) {