winbind: cleanup winbindd_cli_state->pwent_state if winbindd_getpwent_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)
commitb158d4e4c1c3fee0a8884bc5e8f0c5a5ce49687f
tree2e1b0609ba30e3686d3e57c5a895a845175b8f11
parentb7789da8468c3f070727011639d5f74aca76cb59
winbind: cleanup winbindd_cli_state->pwent_state if winbindd_getpwent_recv() returns an error

A client may skip the explicit endpwent() 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_getpwent.c