git.samba.org
/
abartlet
/
samba.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1940b43
)
s4-auth: Use sizeof() rather than a fixed constant in memcmp() call
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 1 Sep 2014 21:48:08 +0000
(09:48 +1200)
committer
Andrew Bartlett
<abartlet@samba.org>
Sun, 7 Sep 2014 23:14:21 +0000
(11:14 +1200)
Change-Id: I2807cf2af9e4c3282e6ff54a6dd8e90f34e9481f
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/auth/ntlm/auth_sam.c
patch
|
blob
|
history
diff --git
a/source4/auth/ntlm/auth_sam.c
b/source4/auth/ntlm/auth_sam.c
index 6e2dd440f7b73356c16da13e58d14dd07a240a38..17f3cfc26e0f3a439c45cf4fbd8b9094c5f4f286 100644
(file)
--- a/
source4/auth/ntlm/auth_sam.c
+++ b/
source4/auth/ntlm/auth_sam.c
@@
-326,7
+326,8
@@
static NTSTATUS authsam_password_check_and_record(struct auth4_context *auth_con
}
/* Skip over all-zero hashes in the history */
- if (memcmp(nt_history_pwd->hash, zero_hash.hash, 16) == 0) {
+ if (memcmp(nt_history_pwd->hash, zero_hash.hash,
+ sizeof(zero_hash.hash)) == 0) {
continue;
}