diff options
-rw-r--r-- | source3/winbindd/winbindd_dual.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/winbindd/winbindd_dual.c b/source3/winbindd/winbindd_dual.c index 8851b8a258..036ad27213 100644 --- a/source3/winbindd/winbindd_dual.c +++ b/source3/winbindd/winbindd_dual.c @@ -43,6 +43,8 @@ extern bool override_logfile; extern struct winbindd_methods cache_methods; +static struct winbindd_child *winbindd_children = NULL; + /* Read some data from a client connection */ static NTSTATUS child_read_request(struct winbindd_cli_state *state) @@ -171,6 +173,7 @@ static void wb_child_request_done(struct tevent_req *subreq) */ close(state->child->sock); state->child->sock = -1; + DLIST_REMOVE(winbindd_children, state->child); tevent_req_error(req, err); return; } @@ -489,8 +492,6 @@ void setup_child(struct winbindd_domain *domain, struct winbindd_child *child, SMB_ASSERT(child->binding_handle != NULL); } -static struct winbindd_child *winbindd_children = NULL; - void winbind_child_died(pid_t pid) { struct winbindd_child *child; |