summaryrefslogtreecommitdiffstats
path: root/source3/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/torture.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/torture/torture.c b/source3/torture/torture.c
index 8313cf141bf..573e3f81102 100644
--- a/source3/torture/torture.c
+++ b/source3/torture/torture.c
@@ -6754,10 +6754,9 @@ static void torture_createdel_created(struct tevent_req *subreq)
status = cli_ntcreate_recv(subreq, &fnum);
TALLOC_FREE(subreq);
- if (!NT_STATUS_IS_OK(status)) {
+ if (tevent_req_nterror(req, status)) {
DEBUG(10, ("cli_ntcreate_recv returned %s\n",
nt_errstr(status)));
- tevent_req_nterror(req, status);
return;
}
@@ -6775,9 +6774,8 @@ static void torture_createdel_closed(struct tevent_req *subreq)
NTSTATUS status;
status = cli_close_recv(subreq);
- if (!NT_STATUS_IS_OK(status)) {
+ if (tevent_req_nterror(req, status)) {
DEBUG(10, ("cli_close_recv returned %s\n", nt_errstr(status)));
- tevent_req_nterror(req, status);
return;
}
tevent_req_done(req);