Fix bug #9104 - winbindd can mis-identify idle clients - can cause crashes and NDR...
commit733dbbb5e71fe24c46206d3497aa4067138f375d
authorHerb Lewis <hlewis@panasas.com>
Mon, 20 Aug 2012 21:51:28 +0000 (20 14:51 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 23 Aug 2012 18:17:32 +0000 (23 20:17 +0200)
tree8dd2cba6bb814597b43856ed05938ad012576e9c
parentc4dadb5867111029c90fd395b64217a23d53f722
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 f6f27baa92a20d5beeee23b8e1e86f0c9ace85b8)

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd.c