summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_rpc_service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rpc_service.c b/source3/utils/net_rpc_service.c
index 631a5a130d..8f04f24ac6 100644
--- a/source3/utils/net_rpc_service.c
+++ b/source3/utils/net_rpc_service.c
@@ -90,7 +90,7 @@ static WERROR query_service_state(struct rpc_pipe_client *pipe_hnd,
&service_status,
&result);
- if (!NT_STATUS_IS_OK(status) || !W_ERROR_IS_OK(result) ) {
+ if (NT_STATUS_IS_OK(status) && W_ERROR_IS_OK(result) ) {
*state = service_status.state;
}