summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-09-11 16:28:15 +0200
committerMichael Adam <obnox@samba.org>2012-09-11 20:10:08 +0200
commit439c907f6b2b02fefa5f1913cbbb8ce971d2611a (patch)
tree88eb7ca9975fb58d077692aa532288e88fe7e6d4 /source4/torture
parente9df135ca52e07af1539cf15e6339d30ae525225 (diff)
downloadsamba-439c907f6b2b02fefa5f1913cbbb8ce971d2611a.tar.gz
samba-439c907f6b2b02fefa5f1913cbbb8ce971d2611a.tar.bz2
samba-439c907f6b2b02fefa5f1913cbbb8ce971d2611a.zip
s4:torture:smb2: fix error reporting in the oplock-brl2 test
(Error was set to an unused variable)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/smb2/oplock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c
index 8bd8f2e3b7..00cf7b5c3d 100644
--- a/source4/torture/smb2/oplock.c
+++ b/source4/torture/smb2/oplock.c
@@ -3089,7 +3089,6 @@ static bool test_smb2_oplock_brl2(struct torture_context *tctx, struct smb2_tree
/*int fname, f;*/
bool ret = true;
uint8_t buf[1000];
- bool correct = true;
union smb_open io;
NTSTATUS status;
struct smb2_handle h, h1;
@@ -3141,7 +3140,7 @@ static bool test_smb2_oplock_brl2(struct torture_context *tctx, struct smb2_tree
status = smb2_util_write(tree1, h1, buf, 0, sizeof(buf));
if (!NT_STATUS_EQUAL(status, NT_STATUS_OK)) {
torture_comment(tctx, "Failed to create file\n");
- correct = false;
+ ret = false;
goto done;
}