summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-09-05 17:05:30 +0200
committerVolker Lendecke <vl@samba.org>2009-09-05 17:05:30 +0200
commitc52fa95b95b9cba472c7a4887e5134bcff802899 (patch)
treedb780f419f7137479140b67895557be4b9e4b0cd /source3/winbindd
parent1abf69231218446635cfc94041e7b0e61d73aeb1 (diff)
downloadsamba-c52fa95b95b9cba472c7a4887e5134bcff802899.tar.gz
samba-c52fa95b95b9cba472c7a4887e5134bcff802899.tar.bz2
samba-c52fa95b95b9cba472c7a4887e5134bcff802899.zip
s3:winbind: Remove pointless <cond> ? true : false;
Diffstat (limited to 'source3/winbindd')
-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 b7a9888f0c..6e67e466dc 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -925,12 +925,12 @@ static NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
uchar salted_hash[NT_HASH_LEN];
E_md5hash(cached_salt, new_nt_pass, salted_hash);
- password_good = (memcmp(cached_nt_pass, salted_hash, NT_HASH_LEN) == 0) ?
- true : false;
+ password_good = (memcmp(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) ?
- true : false;
+ password_good = (memcmp(cached_nt_pass, new_nt_pass,
+ NT_HASH_LEN) == 0);
}
if (password_good) {