mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
s3: Fix another aspect of bug 7262 and make paged results work again
This commit is contained in:
parent
4efa1081aa
commit
a56c688366
@ -4483,10 +4483,6 @@ static bool ldapsam_search_next_entry(struct pdb_search *search,
|
||||
bool result;
|
||||
|
||||
retry:
|
||||
if (state->current_entry == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ((state->entries == NULL) && (state->pagedresults_cookie == NULL))
|
||||
return False;
|
||||
|
||||
@ -4494,6 +4490,10 @@ static bool ldapsam_search_next_entry(struct pdb_search *search,
|
||||
!ldapsam_search_nextpage(search))
|
||||
return False;
|
||||
|
||||
if (state->current_entry == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
result = state->ldap2displayentry(state, search,
|
||||
state->connection->ldap_struct,
|
||||
state->current_entry, entry);
|
||||
|
Loading…
Reference in New Issue
Block a user