s4:torture:smb2: fix error reporting in the oplock-brl3 test
authorMichael Adam <obnox@samba.org>
Tue, 11 Sep 2012 14:28:45 +0000 (16:28 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 11 Sep 2012 20:09:18 +0000 (22:09 +0200)
(Error was set to an unused variable)

Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Tue Sep 11 22:09:18 CEST 2012 on sn-devel-104

source4/torture/smb2/oplock.c

index 00cf7b5c3de0a0fbf06b8f6a737f1f313a3813b6..fc939cc06d827af4f98dd4a94312110422c57a65 100644 (file)
@@ -3190,7 +3190,6 @@ static bool test_smb2_oplock_brl3(struct torture_context *tctx, struct smb2_tree
        const char *fname = BASEDIR "\\test_batch_brl.dat";
        bool ret = true;
        uint8_t buf[1000];
-       bool correct = true;
        union smb_open io;
        NTSTATUS status;
        struct smb2_handle h, h1, h2;
@@ -3241,7 +3240,7 @@ static bool test_smb2_oplock_brl3(struct torture_context *tctx, struct smb2_tree
 
        if (!NT_STATUS_EQUAL(status, NT_STATUS_OK)) {
                torture_comment(tctx, "Failed to create file\n");
-               correct = false;
+               ret = false;
                goto done;
        }