mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3: sendto_domain() is lo longer used
This commit is contained in:
parent
678a3c4e6d
commit
dbb7db6c25
@ -428,34 +428,6 @@ static void async_domain_request_done(struct tevent_req *req)
|
||||
state->continuation(state->private_data_data, true);
|
||||
}
|
||||
|
||||
static void recvfrom_child(void *private_data_data, bool success)
|
||||
{
|
||||
struct winbindd_cli_state *state =
|
||||
talloc_get_type_abort(private_data_data, struct winbindd_cli_state);
|
||||
enum winbindd_result result = state->response->result;
|
||||
|
||||
/* This is an optimization: The child has written directly to the
|
||||
* response buffer. The request itself is still in pending state,
|
||||
* state that in the result code. */
|
||||
|
||||
state->response->result = WINBINDD_PENDING;
|
||||
|
||||
if ((!success) || (result != WINBINDD_OK)) {
|
||||
request_error(state);
|
||||
return;
|
||||
}
|
||||
|
||||
request_ok(state);
|
||||
}
|
||||
|
||||
void sendto_domain(struct winbindd_cli_state *state,
|
||||
struct winbindd_domain *domain)
|
||||
{
|
||||
async_domain_request(state->mem_ctx, domain,
|
||||
state->request, state->response,
|
||||
recvfrom_child, state);
|
||||
}
|
||||
|
||||
static void child_process_request(struct winbindd_child *child,
|
||||
struct winbindd_cli_state *state)
|
||||
{
|
||||
|
@ -276,8 +276,6 @@ void async_domain_request(TALLOC_CTX *mem_ctx,
|
||||
struct winbindd_response *response,
|
||||
void (*continuation)(void *private_data_data, bool success),
|
||||
void *private_data_data);
|
||||
void sendto_domain(struct winbindd_cli_state *state,
|
||||
struct winbindd_domain *domain);
|
||||
void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
|
||||
const struct winbindd_child_dispatch_table *table,
|
||||
const char *logprefix,
|
||||
|
Loading…
Reference in New Issue
Block a user