summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-08-25 18:44:24 +0200
committerGünther Deschner <gd@samba.org>2009-08-26 00:48:04 +0200
commit5b46e5985e0f0edc199408c713a02dbe37faa381 (patch)
tree0cb2ea2eda1a264dda23ab573888841a0d6a3316 /source3/libsmb
parent1a53b617710b1bf9555de6ab01afeaf6f9c1d42a (diff)
downloadsamba-5b46e5985e0f0edc199408c713a02dbe37faa381.tar.gz
samba-5b46e5985e0f0edc199408c713a02dbe37faa381.tar.bz2
samba-5b46e5985e0f0edc199408c713a02dbe37faa381.zip
s3-netlogon: let get_md4pw() return a struct samr_Password.
(in preparation of credential merge). Guenther
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/credentials.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/libsmb/credentials.c b/source3/libsmb/credentials.c
index 9dc0b9f01b..d202409d4b 100644
--- a/source3/libsmb/credentials.c
+++ b/source3/libsmb/credentials.c
@@ -104,9 +104,7 @@ static void creds_init_64(struct dcinfo *dc,
unsigned char sum2[8];
/* Just in case this isn't already there */
- if (dc->mach_pw != mach_pw) {
- memcpy(dc->mach_pw, mach_pw, 16);
- }
+ memcpy(dc->mach_pw, mach_pw, 16);
sum[0] = IVAL(clnt_chal_in->data, 0) + IVAL(srv_chal_in->data, 0);
sum[1] = IVAL(clnt_chal_in->data, 4) + IVAL(srv_chal_in->data, 4);