summaryrefslogtreecommitdiffstats
path: root/source/libsmb/credentials.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-04-09 16:04:07 +0000
committerGerald Carter <jerry@samba.org>2007-04-09 16:04:07 +0000
commit7dcb89c1236f9712f9018744bea2e016b5cdfab9 (patch)
tree69b6dd928b31818c82a7368be3cff169cc8b8a61 /source/libsmb/credentials.c
parent099d375891d4444320bd451486e8bf7d9afdbe0f (diff)
downloadsamba-7dcb89c1236f9712f9018744bea2e016b5cdfab9.tar.gz
samba-7dcb89c1236f9712f9018744bea2e016b5cdfab9.tar.xz
samba-7dcb89c1236f9712f9018744bea2e016b5cdfab9.zip
r22138: * Sync up with the SAMBA_3_0_25 as of svn r22132.
* Set VERSION to 3.0.25rc1 * Update release notes.
Diffstat (limited to 'source/libsmb/credentials.c')
-rw-r--r--source/libsmb/credentials.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/libsmb/credentials.c b/source/libsmb/credentials.c
index 76fc5fc0621..3243719d5c9 100644
--- a/source/libsmb/credentials.c
+++ b/source/libsmb/credentials.c
@@ -101,7 +101,9 @@ static void creds_init_64(struct dcinfo *dc,
unsigned char sum2[8];
/* Just in case this isn't already there */
- memcpy(dc->mach_pw, mach_pw, 16);
+ if (dc->mach_pw != mach_pw) {
+ 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);