summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-01-20 14:08:42 +0100
committerStefan Metzmacher <metze@samba.org>2011-01-25 10:45:22 +0100
commit5d8ada549e629cfe53ed973d66f5fcf0a3bd0a8c (patch)
tree931392649a898ed3d3ceb2c6d61e36a8f297cc4f /source3
parent09c612f377749b79b850ee6c52ae49699e256359 (diff)
downloadsamba-5d8ada549e629cfe53ed973d66f5fcf0a3bd0a8c.tar.gz
samba-5d8ada549e629cfe53ed973d66f5fcf0a3bd0a8c.tar.bz2
samba-5d8ada549e629cfe53ed973d66f5fcf0a3bd0a8c.zip
s3-masktest: Fix cli_errstr() usage (part of bug #7864)
Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/masktest.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c
index 1fc46b9c28..8879102844 100644
--- a/source3/torture/masktest.c
+++ b/source3/torture/masktest.c
@@ -226,11 +226,12 @@ static struct cli_state *connect_one(char *share)
}
}
- if (!NT_STATUS_IS_OK(cli_session_setup(c, username,
- password, strlen(password),
- password, strlen(password),
- lp_workgroup()))) {
- DEBUG(0,("session setup failed: %s\n", cli_errstr(c)));
+ status = cli_session_setup(c, username,
+ password, strlen(password),
+ password, strlen(password),
+ lp_workgroup());
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0, ("session setup failed: %s\n", nt_errstr(status)));
return NULL;
}