1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

libsmb: Use tevent_req_simple_finish_ntstatus

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): Fri Mar  8 19:16:18 UTC 2019 on sn-devel-144
This commit is contained in:
Volker Lendecke 2019-03-02 20:01:10 +01:00 committed by Jeremy Allison
parent 9a38dc0c1f
commit 7caf2cbdf1

View File

@ -5294,11 +5294,7 @@ static void cli_posix_open_done(struct tevent_req *subreq)
NTSTATUS status; NTSTATUS status;
status = cli_posix_open_internal_recv(subreq, &state->fnum); status = cli_posix_open_internal_recv(subreq, &state->fnum);
TALLOC_FREE(subreq); tevent_req_simple_finish_ntstatus(subreq, status);
if (tevent_req_nterror(req, status)) {
return;
}
tevent_req_done(req);
} }
NTSTATUS cli_posix_open_recv(struct tevent_req *req, uint16_t *pfnum) NTSTATUS cli_posix_open_recv(struct tevent_req *req, uint16_t *pfnum)