mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
auth3: Simplify auth_check_ntlm_password logic with a "goto fail"
No intended code change, just reformatting and a goto fail with inverted logic Best viewed with "git show -b" Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Mar 9 02:01:35 CET 2017 on sn-devel-144
This commit is contained in:
parent
66f94e557e
commit
825180bcd2
@ -294,20 +294,22 @@ NTSTATUS auth_check_ntlm_password(TALLOC_CTX *mem_ctx,
|
||||
}
|
||||
}
|
||||
|
||||
if (NT_STATUS_IS_OK(nt_status)) {
|
||||
DEBUG(server_info->guest ? 5 : 2,
|
||||
("check_ntlm_password: %sauthentication for user "
|
||||
"[%s] -> [%s] -> [%s] succeeded\n",
|
||||
server_info->guest ? "guest " : "",
|
||||
user_info->client.account_name,
|
||||
user_info->mapped.account_name,
|
||||
unix_username));
|
||||
|
||||
*pserver_info = talloc_move(mem_ctx, &server_info);
|
||||
if (!NT_STATUS_IS_OK(nt_status)) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
DEBUG(server_info->guest ? 5 : 2,
|
||||
("check_ntlm_password: %sauthentication for user "
|
||||
"[%s] -> [%s] -> [%s] succeeded\n",
|
||||
server_info->guest ? "guest " : "",
|
||||
user_info->client.account_name,
|
||||
user_info->mapped.account_name,
|
||||
unix_username));
|
||||
|
||||
*pserver_info = talloc_move(mem_ctx, &server_info);
|
||||
|
||||
TALLOC_FREE(frame);
|
||||
return nt_status;
|
||||
return NT_STATUS_OK;
|
||||
|
||||
fail:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user