summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2015-01-17 23:34:37 +0100
committerGünther Deschner <gd@samba.org>2015-03-16 20:26:51 +0100
commite8996807b1dec6ca6d731f2319dda4f7e8f848fb (patch)
treef45fe894f29343e97fd6f46475148e0c12144025 /source3
parent9d1840b9bba6844f3654b3cde69d81e2ba545cb8 (diff)
downloadsamba-e8996807b1dec6ca6d731f2319dda4f7e8f848fb.tar.gz
s3:winbind:pwent: use wb_next_find_domain()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/wb_next_pwent.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/source3/winbindd/wb_next_pwent.c b/source3/winbindd/wb_next_pwent.c
index ade74e342d9..77e4c965fdc 100644
--- a/source3/winbindd/wb_next_pwent.c
+++ b/source3/winbindd/wb_next_pwent.c
@@ -111,13 +111,7 @@ static void wb_next_pwent_fetch_done(struct tevent_req *subreq)
}
if (state->gstate->num_users == 0) {
- state->gstate->domain = state->gstate->domain->next;
-
- if ((state->gstate->domain != NULL)
- && sid_check_is_our_sam(&state->gstate->domain->sid)) {
- state->gstate->domain = state->gstate->domain->next;
- }
-
+ state->gstate->domain = wb_next_find_domain(state->gstate->domain);
if (state->gstate->domain == NULL) {
tevent_req_nterror(req, NT_STATUS_NO_MORE_ENTRIES);
return;