summaryrefslogtreecommitdiff
path: root/source3/passdb/machine_account_secrets.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/machine_account_secrets.c')
-rw-r--r--source3/passdb/machine_account_secrets.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/passdb/machine_account_secrets.c b/source3/passdb/machine_account_secrets.c
index 35f72c219f4..203b5ee0eb5 100644
--- a/source3/passdb/machine_account_secrets.c
+++ b/source3/passdb/machine_account_secrets.c
@@ -1873,9 +1873,9 @@ static NTSTATUS secrets_check_password_change(const struct secrets_domain_info1
return NT_STATUS_NETWORK_CREDENTIAL_CONFLICT;
}
- cmp = memcmp(sn->password->nt_hash.hash,
- cn->password->nt_hash.hash,
- 16);
+ cmp = memcmp_const_time(sn->password->nt_hash.hash,
+ cn->password->nt_hash.hash,
+ 16);
if (cmp != 0) {
DBG_ERR("next password.nt_hash differs for %s.\n",
domain);
@@ -1883,9 +1883,9 @@ static NTSTATUS secrets_check_password_change(const struct secrets_domain_info1
return NT_STATUS_NETWORK_CREDENTIAL_CONFLICT;
}
- cmp = memcmp(stored->password->nt_hash.hash,
- cookie->password->nt_hash.hash,
- 16);
+ cmp = memcmp_const_time(stored->password->nt_hash.hash,
+ cookie->password->nt_hash.hash,
+ 16);
if (cmp != 0) {
DBG_ERR("password.nt_hash differs for %s.\n",
domain);