summaryrefslogtreecommitdiff
path: root/source3/torture/masktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture/masktest.c')
-rw-r--r--source3/torture/masktest.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/torture/masktest.c b/source3/torture/masktest.c
index 44d26cdc5a..2ce59c86e6 100644
--- a/source3/torture/masktest.c
+++ b/source3/torture/masktest.c
@@ -216,10 +216,10 @@ struct cli_state *connect_one(char *share)
}
}
- if (!cli_session_setup(c, username,
- password, strlen(password),
- password, strlen(password),
- lp_workgroup())) {
+ 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)));
return NULL;
}