]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:torture:delete: untanlge function call from result check
authorMichael Adam <obnox@samba.org>
Wed, 8 Aug 2012 10:07:29 +0000 (12:07 +0200)
committerMichael Adam <obnox@samba.org>
Thu, 9 Aug 2012 13:27:15 +0000 (15:27 +0200)
source3/torture/torture.c

index 69287459c6114c958dc2f5ac3d41bfbd340e9d1d..1ba915a853b23a2657657e9f4fc102294571ed12 100644 (file)
@@ -4215,7 +4215,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("[8] setting delete_on_close on file failed !\n");
                correct = False;
                goto fail;