winbindd: remove a redundant check from winbindd_dual_pam_auth_samlogon
authorRalph Boehme <slow@samba.org>
Tue, 9 Jan 2018 15:58:06 +0000 (16:58 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 13 Jan 2018 07:24:08 +0000 (08:24 +0100)
result is already checked a few lines above.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd_pam.c

index 42c4aef878cf5c976778fe89d5e615855a0db213..bb5bab212093bf222fd6a34716496f79a9002683 100644 (file)
@@ -1673,7 +1673,8 @@ static NTSTATUS winbindd_dual_pam_auth_samlogon(
         * caller, we look up the account flags ourselves - gd */
 
        if ((request_flags & WBFLAG_PAM_INFO3_TEXT) &&
-           NT_STATUS_IS_OK(result) && (my_info3->base.acct_flags == 0)) {
+           (my_info3->base.acct_flags == 0))
+       {
 
                struct rpc_pipe_client *samr_pipe;
                struct policy_handle samr_domain_handle, user_pol;