summaryrefslogtreecommitdiff
path: root/source/libmsrpc/cac_svcctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/libmsrpc/cac_svcctl.c')
-rw-r--r--source/libmsrpc/cac_svcctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/libmsrpc/cac_svcctl.c b/source/libmsrpc/cac_svcctl.c
index 71cdfba73e4..3d3034df15c 100644
--- a/source/libmsrpc/cac_svcctl.c
+++ b/source/libmsrpc/cac_svcctl.c
@@ -91,6 +91,7 @@ int cac_SvcClose( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
POLICY_HND * scm_hnd )
{
struct rpc_pipe_client *pipe_hnd = NULL;
+ WERROR err;
if ( !hnd )
return CAC_FAILURE;
@@ -111,7 +112,8 @@ int cac_SvcClose( CacServerHandle * hnd, TALLOC_CTX * mem_ctx,
return CAC_FAILURE;
}
- hnd->status = rpccli_svcctl_CloseServiceHandle( pipe_hnd, mem_ctx, scm_hnd );
+ err = rpccli_svcctl_close_service( pipe_hnd, mem_ctx, scm_hnd );
+ hnd->status = werror_to_ntstatus( err );
if ( !NT_STATUS_IS_OK( hnd->status ) )
return CAC_FAILURE;