mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
s3-rpcclient: close policy handle in cmd_clusapi_open_resource().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
126c6f06bf
commit
0a2c933dc5
@ -213,7 +213,7 @@ static WERROR cmd_clusapi_open_resource(struct rpc_pipe_client *cli,
|
||||
const char *lpszResourceName = "Cluster Name";
|
||||
WERROR Status;
|
||||
struct policy_handle hResource;
|
||||
WERROR rpc_status;
|
||||
WERROR rpc_status, ignore;
|
||||
|
||||
if (argc >= 2) {
|
||||
lpszResourceName = argv[1];
|
||||
@ -235,6 +235,10 @@ static WERROR cmd_clusapi_open_resource(struct rpc_pipe_client *cli,
|
||||
|
||||
printf("rpc_status: %s\n", win_errstr(rpc_status));
|
||||
|
||||
dcerpc_clusapi_CloseResource(b, mem_ctx,
|
||||
&hResource,
|
||||
&ignore);
|
||||
|
||||
return WERR_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user