summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_dual.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-06-21 22:10:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:31 -0500
commitf1d263eb62ca3238d6f6c0abbef03e591121d356 (patch)
tree4b854931c7d2bad04485ec3747042367ff556b4d /source3/nsswitch/winbindd_dual.c
parent0e67063cbcac99d89dd9747b57ea1741b1a793b8 (diff)
downloadsamba-f1d263eb62ca3238d6f6c0abbef03e591121d356.tar.gz
samba-f1d263eb62ca3238d6f6c0abbef03e591121d356.tar.bz2
samba-f1d263eb62ca3238d6f6c0abbef03e591121d356.zip
r23577: Fix winbindd (sorry). Ensure I set the new child_pid
variable at the correct point just before the write call is scheduled. Jeremy. (This used to be commit e076dc16462a3ce11105bf9a729ec59ddd9bdc75)
Diffstat (limited to 'source3/nsswitch/winbindd_dual.c')
-rw-r--r--source3/nsswitch/winbindd_dual.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c
index 4363bf0f93..255577c58c 100644
--- a/source3/nsswitch/winbindd_dual.c
+++ b/source3/nsswitch/winbindd_dual.c
@@ -131,7 +131,6 @@ void async_request(TALLOC_CTX *mem_ctx, struct winbindd_child *child,
state->response = response;
state->continuation = continuation;
state->private_data = private_data;
- state->child_pid = child->pid;
DLIST_ADD_END(child->requests, state, struct winbindd_async_request *);
@@ -306,6 +305,9 @@ static void schedule_async_request(struct winbindd_child *child)
return;
}
+ /* Now we know who we're sending to - remember the pid. */
+ request->child_pid = child->pid;
+
setup_async_write(&child->event, request->request,
sizeof(*request->request),
async_main_request_sent, request);