From e9df135ca52e07af1539cf15e6339d30ae525225 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 11 Sep 2012 16:27:19 +0200 Subject: s4:torture:smb2: fix error reporting in the oplock-brl1 test (Error was set to an unused variable) --- source4/torture/smb2/oplock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c index ebf24ad6ff..8bd8f2e3b7 100644 --- a/source4/torture/smb2/oplock.c +++ b/source4/torture/smb2/oplock.c @@ -2967,7 +2967,6 @@ static bool test_smb2_oplock_brl1(struct torture_context *tctx, /*int fname, f;*/ bool ret = true; uint8_t buf[1000]; - bool correct = true; union smb_open io; NTSTATUS status; struct smb2_lock lck; @@ -3019,7 +3018,7 @@ static bool test_smb2_oplock_brl1(struct torture_context *tctx, 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; } -- cgit