summaryrefslogtreecommitdiff
path: root/source4/torture/raw
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-09-13 14:06:40 +0200
committerMichael Adam <obnox@samba.org>2012-09-14 14:05:20 +0200
commit58e62ae7761d3066a85176ee0b860abfb7904c74 (patch)
tree16544d8c53c9b4b07eb7fa51ab42ebc5d208d8b9 /source4/torture/raw
parent1aa281ecb0f45c97d78161fd1308be8655295f1f (diff)
downloadsamba-58e62ae7761d3066a85176ee0b860abfb7904c74.tar.gz
samba-58e62ae7761d3066a85176ee0b860abfb7904c74.tar.bz2
samba-58e62ae7761d3066a85176ee0b860abfb7904c74.zip
s4:torture: fix error reporting in the raw.oplock-brl3 test
Error was assigned to a variable that was not returned. Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Fri Sep 14 14:05:20 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4/torture/raw')
-rw-r--r--source4/torture/raw/oplock.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c
index bd43ef4751..de3d917fae 100644
--- a/source4/torture/raw/oplock.c
+++ b/source4/torture/raw/oplock.c
@@ -3824,7 +3824,6 @@ static bool test_raw_oplock_brl3(struct torture_context *tctx,
const char *fname = BASEDIR "\\test_batch_brl.dat";
bool ret = true;
uint8_t buf[1000];
- bool correct = true;
union smb_open io;
NTSTATUS status;
uint16_t fnum=0;
@@ -3877,7 +3876,7 @@ static bool test_raw_oplock_brl3(struct torture_context *tctx,
sizeof(buf))
{
torture_comment(tctx, "Failed to create file\n");
- correct = false;
+ ret = false;
goto done;
}