diff options
author | Björn Baumbach <bb@sernet.de> | 2011-01-17 13:03:05 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-01-25 10:45:21 +0100 |
commit | 99f8f5e5945c5cd694dbb37fa947c04a24e25957 (patch) | |
tree | 3b67428b3b85c152db0eec0aba97ad6d2b877df0 /source3/torture/locktest.c | |
parent | 3bb212a3a96164121d345a8c8f81294b0f988261 (diff) | |
download | samba-99f8f5e5945c5cd694dbb37fa947c04a24e25957.tar.gz |
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/locktest.c')
-rw-r--r-- | source3/torture/locktest.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source3/torture/locktest.c b/source3/torture/locktest.c index 9c8c6965b1f..9a47f991ea3 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; } |