winbind: cleanup winbindd_cli_state->grent_state if winbindd_getgrent_recv() returns...
authorStefan Metzmacher <metze@samba.org>
Fri, 16 Feb 2018 15:13:16 +0000 (16:13 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 23 Feb 2018 03:09:18 +0000 (04:09 +0100)
commitb7789da8468c3f070727011639d5f74aca76cb59
tree14ffd9117bbcbe8bece05cb76968ab8f0e982066
parent6548b82b5c1ed30ce14e17e4ba9d4bc24ab49c42
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>
source3/winbindd/winbindd_getgrent.c