mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
r21947: Fix the equivalent of memcpy(x, x, 16). Found
by valgrind on the build farm.
Jeremy.
(This used to be commit 6eed92dfd4
)
This commit is contained in:
parent
6685e53385
commit
b3646bd809
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user