From 7caf2cbdf11029c7ed9d78338c797fb8c4fa46b3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 2 Mar 2019 20:01:10 +0100 Subject: [PATCH] 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 --- source3/libsmb/clifile.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)