s4:torture: fix error reporting in the raw.oplock-brl3 test
authorMichael Adam <obnox@samba.org>
Thu, 13 Sep 2012 12:06:40 +0000 (14:06 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 14 Sep 2012 12:05:20 +0000 (14:05 +0200)
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

source4/torture/raw/oplock.c

index bd43ef47510160b7329312971ab2d13f11ad229d..de3d917fae46e54e96a4d0aa2606ee5eb82f9b90 100644 (file)
@@ -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;
        }