Fix bug #9104 - winbindd can mis-identify idle clients - can cause crashes and NDR...
[samba.git] / source3 / winbindd / winbindd.c
index a990342a6a994017bfe6753355c8f636e77130d1..4442c73dbe8773aca00714b24c400a36e03bc0ba 100644 (file)
@@ -872,7 +872,8 @@ static bool remove_idle_client(void)
        int nidle = 0;
 
        for (state = winbindd_client_list(); state; state = state->next) {
-               if (state->response == NULL &&
+               if (state->request == NULL &&
+                   state->response == NULL &&
                    !state->pwent_state && !state->grent_state) {
                        nidle++;
                        if (!last_access || state->last_access < last_access) {