summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-07-10 09:08:57 +0200
committerStefan Metzmacher <metze@samba.org>2010-07-10 09:35:03 +0200
commit751a26214e3d88d2d1bd89787524e7a49c30037f (patch)
tree249f9b445fbe6cb7da7f2f7f03104b25ea069409
parentc7a30c6b173cb2720bcb7d5eefe00899f629b91e (diff)
downloadsamba-751a26214e3d88d2d1bd89787524e7a49c30037f.tar.gz
samba-751a26214e3d88d2d1bd89787524e7a49c30037f.tar.bz2
samba-751a26214e3d88d2d1bd89787524e7a49c30037f.zip
s4:wb_cmd_list_groups: also handle NT_STATUS_NO_MORE_ENTRIES
metze
-rw-r--r--source4/winbind/wb_cmd_list_groups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/winbind/wb_cmd_list_groups.c b/source4/winbind/wb_cmd_list_groups.c
index 16059ea4cc..db256761d3 100644
--- a/source4/winbind/wb_cmd_list_groups.c
+++ b/source4/winbind/wb_cmd_list_groups.c
@@ -137,7 +137,8 @@ static void cmd_list_groups_recv_group_list(struct composite_context *ctx)
/* If NTSTATUS is neither OK nor MORE_ENTRIES, something broke */
if (!NT_STATUS_IS_OK(status) &&
- !NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES)) {
+ !NT_STATUS_EQUAL(status, STATUS_MORE_ENTRIES) &&
+ !NT_STATUS_EQUAL(status, NT_STATUS_NO_MORE_ENTRIES)) {
composite_error(state->ctx, status);
return;
}