git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54970f9
)
s3: Use cli_connect_nb in smbd_running()
author
Volker Lendecke
<vl@samba.org>
Sat, 28 May 2011 18:54:33 +0000
(20:54 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sat, 28 May 2011 18:50:10 +0000
(20:50 +0200)
source3/web/diagnose.c
patch
|
blob
|
history
diff --git
a/source3/web/diagnose.c
b/source3/web/diagnose.c
index d5c5e90d493e7c05bd15e5e26c218538d0bb3c2d..d73337ca8441cd5093fe0112b7e822459b2d8e2e 100644
(file)
--- 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;
}