diff options
author | Volker Lendecke <vl@samba.org> | 2021-08-06 14:16:22 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2021-08-24 17:32:29 +0000 |
commit | f8c828b87ddaf8af245e6671590cfc8ef8ed9ee2 (patch) | |
tree | 6e3f8d88fac0bd88ede9c37ca32f877222de9d1e | |
parent | dc4371f7d6224b045bfcbc4cc78147ed2469868f (diff) | |
download | samba-f8c828b87ddaf8af245e6671590cfc8ef8ed9ee2.tar.gz |
rpc_client: Simplify rpc_api_pipe_auth3_done()
Use tevent_req_simple_finish_ntstatus()
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index d1a535beca0..193a99cb6ee 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -846,19 +846,8 @@ static struct tevent_req *rpc_api_pipe_send(TALLOC_CTX *mem_ctx, static void rpc_api_pipe_auth3_done(struct tevent_req *subreq) { - struct tevent_req *req = - tevent_req_callback_data(subreq, - struct tevent_req); - NTSTATUS status; - - status = rpc_write_recv(subreq); - TALLOC_FREE(subreq); - if (!NT_STATUS_IS_OK(status)) { - tevent_req_nterror(req, status); - return; - } - - tevent_req_done(req); + NTSTATUS status = rpc_write_recv(subreq); + return tevent_req_simple_finish_ntstatus(subreq, status); } static void rpc_api_pipe_trans_done(struct tevent_req *subreq) |