1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

fixed a crash bug in domain auth caused by an uninitialised nt_status

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 1c5e19a418
commit 0b0b937b58
2 changed files with 3 additions and 1 deletions

View File

@ -242,7 +242,7 @@ static NTSTATUS domain_client_validate(TALLOC_CTX *mem_ctx,
fstring remote_machine;
NET_USER_INFO_3 info3;
struct cli_state *cli;
NTSTATUS nt_status;
NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
struct passwd *pass;
/*

View File

@ -1270,6 +1270,7 @@ again:
DEBUG(1,("failed session setup\n"));
nt_status = cli_nt_error(cli);
cli_shutdown(cli);
if (NT_STATUS_IS_OK(nt_status)) nt_status = NT_STATUS_UNSUCCESSFUL;
return nt_status;
}
@ -1281,6 +1282,7 @@ again:
DEBUG(1,("failed tcon_X\n"));
nt_status = cli_nt_error(cli);
cli_shutdown(cli);
if (NT_STATUS_IS_OK(nt_status)) nt_status = NT_STATUS_UNSUCCESSFUL;
return nt_status;
}
}