diff options
author | Stefan Metzmacher <metze@samba.org> | 2007-09-06 11:08:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:30:31 -0500 |
commit | abe7e04244e32278ae39c2156f00a2c678de603c (patch) | |
tree | 325120e4c9b2af18c409ccb134f4243552b7ad3d /source3/nsswitch/winbindd_dual.c | |
parent | 663b922852473321b27b05ccdd88254759658a8a (diff) | |
download | samba-abe7e04244e32278ae39c2156f00a2c678de603c.tar.gz samba-abe7e04244e32278ae39c2156f00a2c678de603c.tar.bz2 samba-abe7e04244e32278ae39c2156f00a2c678de603c.zip |
r24978: move domain_init_recv() near the functions that uses it
metze
(This used to be commit 18e830a935d4712bfbff54f94b531e30cea8a1f9)
Diffstat (limited to 'source3/nsswitch/winbindd_dual.c')
-rw-r--r-- | source3/nsswitch/winbindd_dual.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index 4263d722a1..05676682f9 100644 --- a/source3/nsswitch/winbindd_dual.c +++ b/source3/nsswitch/winbindd_dual.c @@ -357,6 +357,22 @@ void async_domain_request(TALLOC_CTX *mem_ctx, 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) { struct winbindd_cli_state *state = @@ -392,21 +408,6 @@ void sendto_domain(struct winbindd_cli_state *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 { enum winbindd_cmd cmd; |