From: Volker Lendecke Date: Sat, 2 Mar 2019 19:01:10 +0000 (+0100) Subject: libsmb: Use tevent_req_simple_finish_ntstatus X-Git-Tag: talloc-2.2.0~128 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7caf2cbdf11029c7ed9d78338c797fb8c4fa46b3;p=thirdparty%2Fsamba.git libsmb: Use tevent_req_simple_finish_ntstatus Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Fri Mar 8 19:16:18 UTC 2019 on sn-devel-144 --- diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 501b7d9b4ef..d648b495fc6 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -5294,11 +5294,7 @@ static void cli_posix_open_done(struct tevent_req *subreq) NTSTATUS status; status = cli_posix_open_internal_recv(subreq, &state->fnum); - TALLOC_FREE(subreq); - if (tevent_req_nterror(req, status)) { - return; - } - tevent_req_done(req); + tevent_req_simple_finish_ntstatus(subreq, status); } NTSTATUS cli_posix_open_recv(struct tevent_req *req, uint16_t *pfnum)