summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/torture/torture.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index e3f77676f9..0b6f5100a0 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -3922,7 +3922,8 @@ static bool run_deletetest(int dummy)
goto fail;
}
- if (NT_STATUS_IS_OK(cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1))) {
+ status = cli_openx(cli1, fname, O_RDONLY, DENY_NONE, &fnum1);
+ if (NT_STATUS_IS_OK(status)) {
printf("[2] open of %s succeeded should have been deleted on close !\n", fname);
status = cli_close(cli1, fnum1);
if (!NT_STATUS_IS_OK(status)) {