]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:rpc_server/netlogon: 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/netlogon/dcerpc_netlogon.c

index 8c88ed964a02068e77667b490be74360d788a8fe..fc32b61d10b5e363e9bcf1d6e67c479bef3c00b5 100644 (file)
@@ -1604,11 +1604,7 @@ static void dcesrv_netr_LogonSamLogon_base_reply(
                _r->out.result = r->out.result;
        }
 
-       status = dcesrv_reply(state->dce_call);
-       if (!NT_STATUS_IS_OK(status)) {
-               DBG_ERR("dcesrv_reply() failed - %s\n",
-                       nt_errstr(status));
-       }
+       dcesrv_async_reply(state->dce_call);
 }
 
 static NTSTATUS dcesrv_netr_LogonSamLogonEx(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx,
@@ -2183,10 +2179,7 @@ static void dcesrv_netr_LogonControl_base_done(struct tevent_req *subreq)
                r->out.result = state->r.out.result;
        }
 
-       status = dcesrv_reply(state->dce_call);
-       if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0,(__location__ ": dcesrv_reply() failed - %s\n", nt_errstr(status)));
-       }
+       dcesrv_async_reply(state->dce_call);
 }
 
 /*
@@ -3672,11 +3665,7 @@ finished:
        }
 
        TALLOC_FREE(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);
 }
 
 /*
@@ -4333,10 +4322,7 @@ static void dcesrv_netr_DsRGetForestTrustInformation_done(struct tevent_req *sub
                         nt_errstr(status)));
        }
 
-       status = dcesrv_reply(state->dce_call);
-       if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0,(__location__ ": dcesrv_reply() failed - %s\n", nt_errstr(status)));
-       }
+       dcesrv_async_reply(state->dce_call);
 }
 
 /*
@@ -4606,10 +4592,7 @@ static void netr_dnsupdate_RODC_callback(struct tevent_req *subreq)
 
        st->r->out.dns_names = talloc_steal(st->dce_call, st->r2->out.dns_names);
 
-       status = dcesrv_reply(st->dce_call);
-       if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0,(__location__ ": dcesrv_reply() failed - %s\n", nt_errstr(status)));
-       }
+       dcesrv_async_reply(st->dce_call);
 }
 
 /*