s3:torture:delete: untangle function call from result check
authorMichael Adam <obnox@samba.org>
Wed, 8 Aug 2012 09:58:01 +0000 (11:58 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 9 Aug 2012 13:26:08 +0000 (15:26 +0200)
source3/torture/torture.c

index e8051506c75fb03d15d1041ded7a1f8ca3e2bcd6..4d747d2c42a2fee08752cb4ff52a970a59f7bf37 100644 (file)
@@ -4143,7 +4143,8 @@ static bool run_deletetest(int dummy)
                goto fail;
        }
 
-       if (!NT_STATUS_IS_OK(cli_nt_delete_on_close(cli1, fnum1, true))) {
+       status = cli_nt_delete_on_close(cli1, fnum1, true);
+       if (!NT_STATUS_IS_OK(status)) {
                printf("[7] setting delete_on_close on file failed !\n");
                correct = False;
                goto fail;