]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Use rpccli_svcctl_ControlService() in net.
authorGünther Deschner <gd@samba.org>
Tue, 19 Feb 2008 01:37:12 +0000 (02:37 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 19 Feb 2008 02:12:54 +0000 (03:12 +0100)
Guenther

source/utils/net_rpc_service.c

index 77e2ee4ac38657a9f87c1ce2859717c16749549c..3c22bfe3811dcd61a3be48d395742f17cb2990c8 100644 (file)
@@ -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;
        }