summaryrefslogtreecommitdiff
path: root/source3/rpc_client
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpc_client')
-rw-r--r--source3/rpc_client/cli_lsarpc.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/source3/rpc_client/cli_lsarpc.c b/source3/rpc_client/cli_lsarpc.c
index 0e87d92731..88534e6eee 100644
--- a/source3/rpc_client/cli_lsarpc.c
+++ b/source3/rpc_client/cli_lsarpc.c
@@ -144,12 +144,13 @@ NTSTATUS rpccli_lsa_open_policy2(struct rpc_pipe_client *cli,
NTSTATUS status;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
- status = dcerpc_lsa_open_policy(cli->binding_handle,
- mem_ctx,
- sec_qos,
- des_access,
- pol,
- &result);
+ status = dcerpc_lsa_open_policy2(cli->binding_handle,
+ cli->srv_name_slash,
+ mem_ctx,
+ sec_qos,
+ des_access,
+ pol,
+ &result);
if (!NT_STATUS_IS_OK(status)) {
return status;
}