diff options
author | Jeremy Allison <jra@samba.org> | 2007-06-20 17:38:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:28 -0500 |
commit | 073fdc5a58139796dbaa7ea9833dca5308f11282 (patch) | |
tree | 1068f75520b4bc492b3d26aa711c847d3aaccde9 /source/web | |
parent | 3695a66166c6aa88051b21ad40a19f1cc8b87c7b (diff) | |
download | samba-073fdc5a58139796dbaa7ea9833dca5308f11282.tar.gz samba-073fdc5a58139796dbaa7ea9833dca5308f11282.tar.xz samba-073fdc5a58139796dbaa7ea9833dca5308f11282.zip |
r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.
Long overdue fix....
Jeremy.
Diffstat (limited to 'source/web')
-rw-r--r-- | source/web/diagnose.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/web/diagnose.c b/source/web/diagnose.c index b53e139ca94..5f05d8ac9e9 100644 --- a/source/web/diagnose.c +++ b/source/web/diagnose.c @@ -60,12 +60,14 @@ BOOL nmbd_running(void) then closing it */ BOOL smbd_running(void) { + NTSTATUS status; struct cli_state *cli; if ((cli = cli_initialise()) == NULL) return False; - if (!cli_connect(cli, global_myname(), &loopback_ip)) { + status = cli_connect(cli, global_myname(), &loopback_ip); + if (!NT_STATUS_IS_OK(status)) { cli_shutdown(cli); return False; } |