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

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