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

r8777: make sure that the tree connect is a child of the return cli state structure.

This fixes the BASE-DISCONNECT test
This commit is contained in:
Andrew Tridgell 2005-07-26 07:23:57 +00:00 committed by Gerald (Jerry) Carter
parent 77a1e3076a
commit 86fe5817b1

View File

@ -154,6 +154,8 @@ NTSTATUS smbcli_full_connection(TALLOC_CTX *parent_ctx,
(*ret_cli)->tree = tree;
(*ret_cli)->session = tree->session;
(*ret_cli)->transport = tree->session->transport;
talloc_steal(*ret_cli, tree);
done:
return status;
@ -173,14 +175,7 @@ NTSTATUS smbcli_tdis(struct smbcli_state *cli)
****************************************************************************/
struct smbcli_state *smbcli_state_init(TALLOC_CTX *mem_ctx)
{
struct smbcli_state *cli;
cli = talloc_zero(mem_ctx, struct smbcli_state);
if (cli) {
ZERO_STRUCTP(cli);
}
return cli;
return talloc_zero(mem_ctx, struct smbcli_state);
}
/*