From 8a92ae23fe64639c7a19faaacf585f266622c863 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 8 Aug 2012 11:58:24 +0200 Subject: s3:torture:delete: untangle function call from result check --- source3/torture/torture.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 4d747d2c42a..69287459c61 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -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; -- cgit v1.2.1