summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}