diff options
author | Jeremy Allison <jra@samba.org> | 2006-02-09 07:03:23 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:09:59 -0500 |
commit | 5b3c2e63c73fee8949108abe19ac7a448a033a7f (patch) | |
tree | 04d6cad248201a310f8eb9c25dc65469a3fb344d /source/passdb/secrets.c | |
parent | 8ae70122b79fbe682c227ec2c4e5a72bf58d76de (diff) | |
download | samba-5b3c2e63c73fee8949108abe19ac7a448a033a7f.tar.gz samba-5b3c2e63c73fee8949108abe19ac7a448a033a7f.tar.xz samba-5b3c2e63c73fee8949108abe19ac7a448a033a7f.zip |
r13407: Change the credentials code to be more like the Samba4 structure,
makes fixes much easier to port. Fix the size of dc->sess_key to
be 16 bytes, not 8 bytes - only store 8 bytes in the inter-smbd
store in secrets.tdb though. Should fix some uses of the dc->sess_key
where we where assuming we could read 16 bytes.
Jeremy.
Diffstat (limited to 'source/passdb/secrets.c')
-rw-r--r-- | source/passdb/secrets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/passdb/secrets.c b/source/passdb/secrets.c index 69bafc7ce57..8f93bec9bc7 100644 --- a/source/passdb/secrets.c +++ b/source/passdb/secrets.c @@ -1063,6 +1063,7 @@ BOOL secrets_restore_schannel_session_info(TALLOC_CTX *mem_ctx, memcpy(pdc->clnt_chal.data, pclnt_chal, 8); memcpy(pdc->srv_chal.data, psrv_chal, 8); memcpy(pdc->sess_key, psess_key, 8); + memset(&pdc->sess_key[8], '\0', 8); /* key followed by 8 bytes of zero. */ memcpy(pdc->mach_pw, pmach_pw, 16); /* We know these are true so didn't bother to store them. */ |