s3:winbind: Remove pointless <cond> ? true : false;
authorVolker Lendecke <vl@samba.org>
Sat, 5 Sep 2009 15:05:30 +0000 (17:05 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 5 Sep 2009 15:05:30 +0000 (17:05 +0200)
source3/winbindd/winbindd_pam.c

index b7a9888f0c2dff788e92f38c2bca20444a3e87b1..6e67e466dc0fb5439732a62627a3109813ce80da 100644 (file)
@@ -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) {