1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

More logical operations on booleans. IBM checker.

Jeremy.
This commit is contained in:
Jeremy Allison 2008-01-04 23:24:15 -08:00
parent 7f9fe7da1e
commit e289a0c859
2 changed files with 6 additions and 2 deletions

View File

@ -270,7 +270,9 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx,
&info3);
if (NT_STATUS_IS_OK(nt_status)) {
(*server_info)->was_mapped |= user_info->was_mapped;
if (user_info->was_mapped) {
(*server_info)->was_mapped = user_info->was_mapped;
}
if ( ! (*server_info)->guest) {
/* if a real user check pam account restrictions */

View File

@ -134,7 +134,9 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context,
}
if (NT_STATUS_IS_OK(nt_status)) {
(*server_info)->was_mapped |= user_info->was_mapped;
if (user_info->was_mapped) {
(*server_info)->was_mapped = user_info->was_mapped;
}
}
}
} else if (NT_STATUS_IS_OK(nt_status)) {