summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorBjörn Baumbach <bb@sernet.de>2011-01-17 13:03:05 +0100
committerStefan Metzmacher <metze@samba.org>2011-01-25 10:45:21 +0100
commit99f8f5e5945c5cd694dbb37fa947c04a24e25957 (patch)
tree3b67428b3b85c152db0eec0aba97ad6d2b877df0 /source3/torture
parent3bb212a3a96164121d345a8c8f81294b0f988261 (diff)
downloadsamba-99f8f5e5945c5cd694dbb37fa947c04a24e25957.tar.gz
samba-99f8f5e5945c5cd694dbb37fa947c04a24e25957.tar.bz2
samba-99f8f5e5945c5cd694dbb37fa947c04a24e25957.zip
s3-torture: 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/torture')
-rw-r--r--source3/torture/locktest.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c
index 9c8c6965b1..9a47f991ea 100644
--- a/source3/torture/locktest.c
+++ b/source3/torture/locktest.c
@@ -233,13 +233,12 @@ static struct cli_state *connect_one(char *share, int snum)
fstrcpy(username[1], username[0]);
}
- if (!NT_STATUS_IS_OK(cli_session_setup(c, username[snum],
- password[snum],
- strlen(password[snum]),
- password[snum],
- strlen(password[snum]),
- lp_workgroup()))) {
- DEBUG(0,("session setup failed: %s\n", cli_errstr(c)));
+ status = cli_session_setup(c, username[snum],
+ password[snum], strlen(password[snum]),
+ password[snum], strlen(password[snum]),
+ lp_workgroup());
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0,("session setup failed: %s\n", nt_errstr(status)));
return NULL;
}