mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
r24978: move domain_init_recv() near the functions that uses it
metze
(This used to be commit 18e830a935
)
This commit is contained in:
parent
663b922852
commit
abe7e04244
@ -357,6 +357,22 @@ void async_domain_request(TALLOC_CTX *mem_ctx,
|
|||||||
init_child_connection(domain, domain_init_recv, state);
|
init_child_connection(domain, domain_init_recv, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void domain_init_recv(void *private_data_data, BOOL success)
|
||||||
|
{
|
||||||
|
struct domain_request_state *state =
|
||||||
|
talloc_get_type_abort(private_data_data, struct domain_request_state);
|
||||||
|
|
||||||
|
if (!success) {
|
||||||
|
DEBUG(5, ("Domain init returned an error\n"));
|
||||||
|
state->continuation(state->private_data_data, False);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
async_request(state->mem_ctx, &state->domain->child,
|
||||||
|
state->request, state->response,
|
||||||
|
state->continuation, state->private_data_data);
|
||||||
|
}
|
||||||
|
|
||||||
static void recvfrom_child(void *private_data_data, BOOL success)
|
static void recvfrom_child(void *private_data_data, BOOL success)
|
||||||
{
|
{
|
||||||
struct winbindd_cli_state *state =
|
struct winbindd_cli_state *state =
|
||||||
@ -392,21 +408,6 @@ void sendto_domain(struct winbindd_cli_state *state,
|
|||||||
recvfrom_child, state);
|
recvfrom_child, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void domain_init_recv(void *private_data_data, BOOL success)
|
|
||||||
{
|
|
||||||
struct domain_request_state *state =
|
|
||||||
talloc_get_type_abort(private_data_data, struct domain_request_state);
|
|
||||||
|
|
||||||
if (!success) {
|
|
||||||
DEBUG(5, ("Domain init returned an error\n"));
|
|
||||||
state->continuation(state->private_data_data, False);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
async_request(state->mem_ctx, &state->domain->child,
|
|
||||||
state->request, state->response,
|
|
||||||
state->continuation, state->private_data_data);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct winbindd_child_dispatch_table {
|
struct winbindd_child_dispatch_table {
|
||||||
enum winbindd_cmd cmd;
|
enum winbindd_cmd cmd;
|
||||||
|
Loading…
Reference in New Issue
Block a user