From: Stefan Metzmacher Date: Thu, 12 Oct 2023 09:05:46 +0000 (+0200) Subject: s4:rpc_server/lsa: make use of dcesrv_async_reply() X-Git-Tag: talloc-2.4.2~1248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d880999480ed62cd0249f3bd67d5f7830d396b57;p=thirdparty%2Fsamba.git s4:rpc_server/lsa: make use of dcesrv_async_reply() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- diff --git a/source4/rpc_server/lsa/lsa_lookup.c b/source4/rpc_server/lsa/lsa_lookup.c index 0082ad11925..ca3ad4f961e 100644 --- a/source4/rpc_server/lsa/lsa_lookup.c +++ b/source4/rpc_server/lsa/lsa_lookup.c @@ -600,10 +600,7 @@ static void dcesrv_lsa_LookupSids_base_done(struct tevent_req *subreq) state->r.out.result = status; dcesrv_lsa_LookupSids_base_map(state); - status = dcesrv_reply(dce_call); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(0,(__location__ ": dcesrv_reply() failed - %s\n", nt_errstr(status))); - } + dcesrv_async_reply(dce_call); } /* @@ -1284,10 +1281,7 @@ static void dcesrv_lsa_LookupNames_base_done(struct tevent_req *subreq) state->r.out.result = status; dcesrv_lsa_LookupNames_base_map(state); - status = dcesrv_reply(dce_call); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(0,(__location__ ": dcesrv_reply() failed - %s\n", nt_errstr(status))); - } + dcesrv_async_reply(dce_call); } /*