s4:rpc_server/lsa: make use of dcesrv_async_reply()
authorStefan Metzmacher <metze@samba.org>
Thu, 12 Oct 2023 09:05:46 +0000 (11:05 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 17 Oct 2023 19:20:38 +0000 (19:20 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/rpc_server/lsa/lsa_lookup.c

index 0082ad11925ed9bc81fe20b889bf9f48c03ffc12..ca3ad4f961ed3b41648d0421f93313bcb46c096d 100644 (file)
@@ -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);
 }
 
 /*