summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd_pam.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/winbindd/winbindd_pam.c')
-rw-r--r--source3/winbindd/winbindd_pam.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 21649c69b10..b8c9fb67a65 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -1215,12 +1215,12 @@ static NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
}
gnutls_hash_deinit(hash_hnd, salted_hash);
- password_good = (memcmp(cached_nt_pass, salted_hash,
- NT_HASH_LEN) == 0);
+ password_good = (memcmp_const_time(cached_nt_pass, salted_hash,
+ NT_HASH_LEN) == 0);
} else {
/* Old cached cred - direct store of nt_hash (bad bad bad !). */
- password_good = (memcmp(cached_nt_pass, new_nt_pass,
- NT_HASH_LEN) == 0);
+ password_good = (memcmp_const_time(cached_nt_pass, new_nt_pass,
+ NT_HASH_LEN) == 0);
}
if (password_good) {