From dac7ccee9ff01407bfadbfe466425f0266eafd52 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 12 Jan 2011 13:57:08 +0100 Subject: s3-net: fix query_service_state() error handling. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Autobuild-User: Günther Deschner Autobuild-Date: Wed Jan 12 15:22:56 CET 2011 on sn-devel-104 --- source3/utils/net_rpc_service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit