When looking for idle clients, we dereferenced state->response. As this is
dynamically allocated now, the proper test is whether state->response exists at
all. This is the case when an async operation is in process at that moment.
}
TALLOC_FREE(state->mem_ctx);
+ state->response = NULL;
req = wb_req_read_send(state, winbind_event_context(), state->sock,
WINBINDD_MAX_EXTRA_DATA);
int nidle = 0;
for (state = winbindd_client_list(); state; state = state->next) {
- if (state->response->result != WINBINDD_PENDING &&
+ if (state->response == NULL &&
!state->getpwent_state && !state->getgrent_state) {
nidle++;
if (!last_access || state->last_access < last_access) {