summaryrefslogtreecommitdiff
path: root/source4/torture/locktest.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/locktest.c')
-rw-r--r--source4/torture/locktest.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c
index 0d2608f7c3b..ac8d854a358 100644
--- a/source4/torture/locktest.c
+++ b/source4/torture/locktest.c
@@ -221,7 +221,7 @@ static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS],
uint64_t len = rec->len;
enum brl_type op = rec->lock_type;
int server;
- bool ret[NSERVERS];
+ /* bool ret[NSERVERS]; */
NTSTATUS status[NSERVERS];
switch (rec->lock_op) {
@@ -256,8 +256,8 @@ static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS],
res = smb_raw_lock(tree, &parms);
}
- ret[server] = NT_STATUS_IS_OK(res);
- status[server] = smbcli_nt_error(cli[server][conn]->tree);
+ /* ret[server] = NT_STATUS_IS_OK(res); */
+ status[server] = res;
if (!exact_error_codes &&
NT_STATUS_EQUAL(status[server],
NT_STATUS_FILE_LOCK_CONFLICT)) {
@@ -302,8 +302,8 @@ static bool test_one(struct smbcli_state *cli[NSERVERS][NCONNECTIONS],
res = smb_raw_lock(tree, &parms);
}
- ret[server] = NT_STATUS_IS_OK(res);
- status[server] = smbcli_nt_error(cli[server][conn]->tree);
+ /* ret[server] = NT_STATUS_IS_OK(res); */
+ status[server] = res;
}
if (showall ||
(!hide_unlock_fails && !NT_STATUS_EQUAL(status[0],status[1]))) {