summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-01-12 13:57:08 +0100
committerGünther Deschner <gd@samba.org>2011-01-12 15:22:56 +0100
commitdac7ccee9ff01407bfadbfe466425f0266eafd52 (patch)
treea82b4b43be27856acccfa369f7bb534dddc29e46
parent9bad1507050046de553c842e2ca0112437b705c1 (diff)
downloadsamba-dac7ccee9ff01407bfadbfe466425f0266eafd52.tar.gz
samba-dac7ccee9ff01407bfadbfe466425f0266eafd52.tar.bz2
samba-dac7ccee9ff01407bfadbfe466425f0266eafd52.zip
s3-net: fix query_service_state() error handling.
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Jan 12 15:22:56 CET 2011 on sn-devel-104
-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;
}