summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-03 12:04:24 +0200
committerVolker Lendecke <vl@samba.org>2011-07-03 22:45:25 +0200
commit3414182af0ae2dcd8ebaa93cccfd62602e9863d1 (patch)
treeafc967c962fa39c2238fc73a85e420bbca9c3299 /source3/libsmb
parent4569a3a75a047d2e4b84d681d8478640ad89d48d (diff)
downloadsamba-3414182af0ae2dcd8ebaa93cccfd62602e9863d1.tar.gz
samba-3414182af0ae2dcd8ebaa93cccfd62602e9863d1.tar.bz2
samba-3414182af0ae2dcd8ebaa93cccfd62602e9863d1.zip
s3: Remove a use of cli_errstr
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clidfs.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c
index 5c5257fb6f..1ae61511d1 100644
--- a/source3/libsmb/clidfs.c
+++ b/source3/libsmb/clidfs.c
@@ -151,19 +151,21 @@ static struct cli_state *do_connect(TALLOC_CTX *ctx,
username = get_cmdline_auth_info_username(auth_info);
password = get_cmdline_auth_info_password(auth_info);
- if (!NT_STATUS_IS_OK(cli_session_setup(c, username,
- password, strlen(password),
- password, strlen(password),
- lp_workgroup()))) {
+ status = cli_session_setup(c, username,
+ password, strlen(password),
+ password, strlen(password),
+ lp_workgroup());
+ if (!NT_STATUS_IS_OK(status)) {
/* If a password was not supplied then
* try again with a null username. */
if (password[0] || !username[0] ||
get_cmdline_auth_info_use_kerberos(auth_info) ||
- !NT_STATUS_IS_OK(cli_session_setup(c, "",
+ !NT_STATUS_IS_OK(status = cli_session_setup(c, "",
"", 0,
"", 0,
lp_workgroup()))) {
- d_printf("session setup failed: %s\n", cli_errstr(c));
+ d_printf("session setup failed: %s\n",
+ nt_errstr(status));
if (NT_STATUS_V(cli_nt_error(c)) ==
NT_STATUS_V(NT_STATUS_MORE_PROCESSING_REQUIRED))
d_printf("did you forget to run kinit?\n");