Fix bug #9104 - winbindd can mis-identify idle clients - can cause crashes and NDR...
authorHerb Lewis <hlewis@panasas.com>
Mon, 20 Aug 2012 23:03:28 +0000 (16:03 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 21 Sep 2012 07:44:42 +0000 (09:44 +0200)
commitaca082e6df0ae46b3c2267f0a5ebed91893aaef8
tree6a260b9539f6cddc2784521fe93a8a8c396fadd3
parent83148e290f436783dc24b7349be38e40049ce080
Fix bug #9104 - winbindd can mis-identify idle clients - can cause crashes and NDR parsing errors.

A connection is idle when both struct winbindd_cli_state->request AND
struct winbindd_cli_state->response are NULL. Otherwise we can flag
as idle a connection in the state of having sent the request to
the winbindd child (request != NULL) but not yet received a reply
(response == NULL).
(cherry picked from commit 36dc8a0f40a38d9c03570856cb4c843b74c1c7bd)
source3/winbindd/winbindd.c