summaryrefslogtreecommitdiff
path: root/source4/torture/raw/mux.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/raw/mux.c')
-rw-r--r--source4/torture/raw/mux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/raw/mux.c b/source4/torture/raw/mux.c
index 70e6c09d9e..8b3bcc12e3 100644
--- a/source4/torture/raw/mux.c
+++ b/source4/torture/raw/mux.c
@@ -110,7 +110,7 @@ static BOOL test_mux_write(struct cli_state *cli, TALLOC_CTX *mem_ctx)
cli->session->pid = 1;
/* lock a range */
- if (!cli_lock(cli->tree, fnum, 0, 4, 0, WRITE_LOCK)) {
+ if (NT_STATUS_IS_ERR(cli_lock(cli->tree, fnum, 0, 4, 0, WRITE_LOCK))) {
printf("lock failed in mux_write - %s\n", cli_errstr(cli->tree));
ret = False;
goto done;
@@ -271,7 +271,7 @@ BOOL torture_raw_mux(int dummy)
}
- if (!cli_mkdir(cli->tree, BASEDIR)) {
+ if (NT_STATUS_IS_ERR(cli_mkdir(cli->tree, BASEDIR))) {
printf("Failed to create %s\n", BASEDIR);
ret = False;
goto done;