diff options
author | Günther Deschner <gd@samba.org> | 2008-02-19 02:37:12 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-19 03:12:54 +0100 |
commit | 87bccd70caa6521fbbf6aa603ffff3ce30d8133d (patch) | |
tree | a3c0e94ef63304913717a51964994d07ed7c3afa /source3/utils | |
parent | e87216972a01ac233e383674555b2a1ff5dfbaab (diff) | |
download | samba-87bccd70caa6521fbbf6aa603ffff3ce30d8133d.tar.gz samba-87bccd70caa6521fbbf6aa603ffff3ce30d8133d.tar.xz samba-87bccd70caa6521fbbf6aa603ffff3ce30d8133d.zip |
Use rpccli_svcctl_ControlService() in net.
Guenther
(This used to be commit 49375f0b4d5ead7d26659cfc94997bd3e18c48a9)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rpc_service.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_service.c b/source3/utils/net_rpc_service.c index 77e2ee4ac3..3c22bfe381 100644 --- a/source3/utils/net_rpc_service.c +++ b/source3/utils/net_rpc_service.c @@ -127,10 +127,13 @@ static WERROR control_service(struct rpc_pipe_client *pipe_hnd, /* get the status */ - result = rpccli_svcctl_control_service(pipe_hnd, mem_ctx, &hService, - control, &service_status ); + status = rpccli_svcctl_ControlService(pipe_hnd, mem_ctx, + &hService, + control, + &service_status, + &result); - if ( !W_ERROR_IS_OK(result) ) { + if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(result) ) { d_fprintf(stderr, "Control service request failed. [%s]\n", dos_errstr(result)); goto done; } |