From: Jeremy Allison Date: Thu, 21 Jun 2007 22:10:41 +0000 (+0000) Subject: r23577: Fix winbindd (sorry). Ensure I set the new child_pid X-Git-Tag: samba-4.0.0alpha6~801^2~5566 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1d263eb62ca3238d6f6c0abbef03e591121d356;p=thirdparty%2Fsamba.git 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) --- diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index 4363bf0f935..255577c58cf 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);