From 5b46e5985e0f0edc199408c713a02dbe37faa381 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 25 Aug 2009 18:44:24 +0200 Subject: s3-netlogon: let get_md4pw() return a struct samr_Password. (in preparation of credential merge). Guenther --- source3/libsmb/credentials.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source3/libsmb') 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); -- cgit