winbind: cleanup winbindd_cli_state->grent_state if winbindd_getgrent_recv() returns...
commite40405854191f8f5f733e9c58f2e8c9b1976624c
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Feb 2018 15:13:16 +0000 (16 16:13 +0100)
committerKarolin Seeger <kseeger@samba.org>
Fri, 20 Apr 2018 09:53:10 +0000 (20 11:53 +0200)
tree965f95e9c2328cf828f5188be689dfe220de772b
parent2594449b6da14a4b566b85f4c1a7230017e41bd9
winbind: cleanup winbindd_cli_state->grent_state if winbindd_getgrent_recv() returns an error

A client may skip the explicit endgrent() if getgrent() fails.

This allows client_is_idle() return true in more cases.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13293

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit b7789da8468c3f070727011639d5f74aca76cb59)
source3/winbindd/winbindd_getgrent.c