diff --git a/source4/libcli/cliconnect.c b/source4/libcli/cliconnect.c index 5aabb55f5de..354840b84c5 100644 --- a/source4/libcli/cliconnect.c +++ b/source4/libcli/cliconnect.c @@ -188,7 +188,6 @@ 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->session->transport->socket); done: talloc_free(mem_ctx);