nsswitch: Only connect to the priv socket if required
[samba.git] / source3 / winbindd / wb_ping.c
index 56ecc6671c231174cb6f0f2c5aedff358927be0d..bfba3c168bbbc2c9d37b994a804bf2e3335ca7ca 100644 (file)
@@ -25,6 +25,7 @@ struct wb_ping_state {
 };
 
 struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
+                               struct winbindd_cli_state *cli,
                                struct winbindd_request *request)
 {
        struct tevent_req *req;
@@ -39,15 +40,7 @@ struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
        return req;
 }
 
-NTSTATUS wb_ping_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
-                     struct winbindd_response **presp)
+NTSTATUS wb_ping_recv(struct tevent_req *req, struct winbindd_response *presp)
 {
-       struct winbindd_response *resp;
-
-       resp = talloc_zero(mem_ctx, struct winbindd_response);
-       if (resp == NULL) {
-               return NT_STATUS_NO_MEMORY;
-       }
-       *presp = resp;
        return NT_STATUS_OK;
 }