1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Try to avoid infinite loops when reteriving users - even from broken servers.

Andrew Bartlett
(This used to be commit ebc8452a30)
This commit is contained in:
Andrew Bartlett 2002-06-25 11:20:14 +00:00
parent 0746576113
commit 6fc42047ec

View File

@ -874,7 +874,10 @@ static NTSTATUS cmd_samr_query_dispinfo(struct cli_state *cli,
&start_idx, info_level,
&num_entries, max_entries, &ctr);
if (!NT_STATUS_IS_OK(result))
if (!NT_STATUS_IS_OK(result) && !NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES))
break;
if (num_entries == 0)
break;
for (i = 0; i < num_entries; i++) {