diff options
author | Volker Lendecke <vl@samba.org> | 2013-11-15 13:17:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2013-11-19 04:05:08 +0100 |
commit | 2bb0954567dc2b3680a8fd9609a4930b9c635101 (patch) | |
tree | f5e2718e34741efaf383a11fc6354c64965c8091 /source3/torture | |
parent | b7da5a5b00f6c78e41279415e33c091dcc0a773b (diff) | |
download | samba-2bb0954567dc2b3680a8fd9609a4930b9c635101.tar.gz samba-2bb0954567dc2b3680a8fd9609a4930b9c635101.tar.xz samba-2bb0954567dc2b3680a8fd9609a4930b9c635101.zip |
torture3: Use tevent_req_nterror properly
Might be minor, but the less example of wrong API use we have the better
it is.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 19 04:05:08 CET 2013 on sn-devel-104
Diffstat (limited to 'source3/torture')
-rw-r--r-- | source3/torture/torture.c | 6 |
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); |