From f1d263eb62ca3238d6f6c0abbef03e591121d356 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 21 Jun 2007 22:10:41 +0000 Subject: 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) --- source3/nsswitch/winbindd_dual.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3/nsswitch/winbindd_dual.c') 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); -- cgit