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

index b0baf82d7d0bbc3232c1e75be118f673c887b154..82d9556d6a728e60f981849b75a93640e8e7ca34 100644 (file)
@@ -169,15 +169,10 @@ static void echo_TestSleep_handler(struct tevent_context *ev, struct tevent_time
        struct echo_TestSleep_private *p = talloc_get_type(private_data,
                                                           struct echo_TestSleep_private);
        struct echo_TestSleep *r = p->r;
-       NTSTATUS status;
 
        r->out.result = r->in.seconds;
 
-       status = dcesrv_reply(p->dce_call);
-       if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0,("echo_TestSleep_handler: dcesrv_reply() failed - %s\n",
-                       nt_errstr(status)));
-       }
+       dcesrv_async_reply(p->dce_call);
 }
 
 static long dcesrv_echo_TestSleep(struct dcesrv_call_state *dce_call, TALLOC_CTX *mem_ctx, struct echo_TestSleep *r)