winbindd: Fix winbindd_ping_dc_recv
authorVolker Lendecke <vl@samba.org>
Sat, 19 May 2018 16:40:44 +0000 (18:40 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 15 Jun 2018 23:06:36 +0000 (01:06 +0200)
tevent_req_simple_recv_ntstatus is only for the one-liner without any
additional functionality.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_ping_dc.c

index 8000493db45da846bd5e253542c57787c4c7457b..8f56a9e8a77e3081d0e989e087fe40add8a8e521 100644 (file)
@@ -135,5 +135,6 @@ NTSTATUS winbindd_ping_dc_recv(struct tevent_req *req,
                presp->length += strlen((char *)presp->extra_data.data) + 1;
        }
 
-       return tevent_req_simple_recv_ntstatus(req);
+       tevent_req_received(req);
+       return NT_STATUS_OK;
 }