summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clidfs.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-16 17:14:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:39 -0500
commitb29915d6113264bdce243005d29a1af9a8b69bde (patch)
tree4eabcbaac1b16408df187f84a05da81a879dc803 /source3/libsmb/clidfs.c
parent0be131725ff90e48d4f9696b80b35b740575fb2c (diff)
downloadsamba-b29915d6113264bdce243005d29a1af9a8b69bde.tar.gz
samba-b29915d6113264bdce243005d29a1af9a8b69bde.tar.xz
samba-b29915d6113264bdce243005d29a1af9a8b69bde.zip
r17571: Change the return code of cli_session_setup from BOOL to NTSTATUS
Volker (This used to be commit 94817a8ef53589011bc4ead4e17807a101acf5c9)
Diffstat (limited to 'source3/libsmb/clidfs.c')
-rw-r--r--source3/libsmb/clidfs.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index 0135881021d..916e4cefc6e 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -127,13 +127,14 @@ static struct cli_state *do_connect( const char *server, const char *share,
}
}
- if (!cli_session_setup(c, username,
- password, strlen(password),
- password, strlen(password),
- lp_workgroup())) {
+ if (!NT_STATUS_IS_OK(cli_session_setup(c, username,
+ password, strlen(password),
+ password, strlen(password),
+ lp_workgroup()))) {
/* if a password was not supplied then try again with a null username */
if (password[0] || !username[0] || use_kerberos ||
- !cli_session_setup(c, "", "", 0, "", 0, lp_workgroup())) {
+ !NT_STATUS_IS_OK(cli_session_setup(c, "", "", 0, "", 0,
+ lp_workgroup()))) {
d_printf("session setup failed: %s\n", cli_errstr(c));
if (NT_STATUS_V(cli_nt_error(c)) ==
NT_STATUS_V(NT_STATUS_MORE_PROCESSING_REQUIRED))