git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9df135
)
s4:torture:smb2: fix error reporting in the oplock-brl2 test
author
Michael Adam
<obnox@samba.org>
Tue, 11 Sep 2012 14:28:15 +0000
(16:28 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 11 Sep 2012 18:10:08 +0000
(20:10 +0200)
(Error was set to an unused variable)
source4/torture/smb2/oplock.c
patch
|
blob
|
history
diff --git
a/source4/torture/smb2/oplock.c
b/source4/torture/smb2/oplock.c
index 8bd8f2e3b7342eccd3dd9c3b72968d5f710556fb..00cf7b5c3de0a0fbf06b8f6a737f1f313a3813b6 100644
(file)
--- 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");
-
correc
t = false;
+
re
t = false;
goto done;
}