From be70aa761406da12c1332b31ab1c9ccd2a561538 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 29 Mar 2005 06:45:10 +0000 Subject: r6110: Close handles on user creation. This allows easy mass creation of users with rpcclient. Volker (This used to be commit 1a56a4fd3e09361e44c8ff4666bd6091db0b945d) --- source3/rpcclient/cmd_samr.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index f327004911..bc002da71d 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -1279,6 +1279,15 @@ static NTSTATUS cmd_samr_create_dom_user(struct cli_state *cli, if (!NT_STATUS_IS_OK(result)) goto done; + result = cli_samr_close(cli, mem_ctx, &user_pol); + if (!NT_STATUS_IS_OK(result)) goto done; + + result = cli_samr_close(cli, mem_ctx, &domain_pol); + if (!NT_STATUS_IS_OK(result)) goto done; + + result = cli_samr_close(cli, mem_ctx, &connect_pol); + if (!NT_STATUS_IS_OK(result)) goto done; + done: return result; } -- cgit