summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-28 20:54:33 +0200
committerVolker Lendecke <vl@samba.org>2011-05-28 20:50:10 +0200
commit230cb3b90435d951beb62d8dd5230f74e178f921 (patch)
tree1cc4eb58ecb2ae60ba955aadd99dde9681220920 /source3
parent54970f90f6966f8b0c17a7c2badda619c2ebc13a (diff)
downloadsamba-230cb3b90435d951beb62d8dd5230f74e178f921.tar.gz
samba-230cb3b90435d951beb62d8dd5230f74e178f921.tar.bz2
samba-230cb3b90435d951beb62d8dd5230f74e178f921.zip
s3: Use cli_connect_nb in smbd_running()
Diffstat (limited to 'source3')
-rw-r--r--source3/web/diagnose.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/web/diagnose.c b/source3/web/diagnose.c
index d5c5e90d49..d73337ca84 100644
--- a/source3/web/diagnose.c
+++ b/source3/web/diagnose.c
@@ -70,15 +70,11 @@ bool smbd_running(void)
loopback_ip.s_addr = htonl(INADDR_LOOPBACK);
in_addr_to_sockaddr_storage(&ss, loopback_ip);
- if ((cli = cli_initialise()) == NULL)
- return False;
-
- status = cli_connect(cli, global_myname(), &ss);
+ status = cli_connect_nb("localhost", &ss, 0, 0x20, global_myname(),
+ Undefined, &cli);
if (!NT_STATUS_IS_OK(status)) {
- cli_shutdown(cli);
- return False;
+ return false;
}
-
cli_shutdown(cli);
return True;
}