]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture:smb2: fix error reporting in the oplock-brl1 test
authorMichael Adam <obnox@samba.org>
Tue, 11 Sep 2012 14:27:19 +0000 (16:27 +0200)
committerMichael 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

index ebf24ad6ff3034857e44a7c111d063ab6ffb963d..8bd8f2e3b7342eccd3dd9c3b72968d5f710556fb 100644 (file)
@@ -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;
        }