summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_rpc.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-07-11 18:12:24 +0000
committerGerald Carter <jerry@samba.org>2003-07-11 18:12:24 +0000
commit05ec9c40f40be4d4dbb10b33e0def2374468ff8a (patch)
treee7c54a1f5c52d91e558b45e9bec351c9abf88664 /source/nsswitch/winbindd_rpc.c
parent3b5ddd8e1f021f6a38434c0d9a47317ab6ff2614 (diff)
downloadsamba-05ec9c40f40be4d4dbb10b33e0def2374468ff8a.tar.gz
samba-05ec9c40f40be4d4dbb10b33e0def2374468ff8a.tar.xz
samba-05ec9c40f40be4d4dbb10b33e0def2374468ff8a.zip
patch for domain groups with no members (rpc only) from Ken Cross
Diffstat (limited to 'source/nsswitch/winbindd_rpc.c')
-rw-r--r--source/nsswitch/winbindd_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_rpc.c b/source/nsswitch/winbindd_rpc.c
index 81a79751f89..33339d7ca03 100644
--- a/source/nsswitch/winbindd_rpc.c
+++ b/source/nsswitch/winbindd_rpc.c
@@ -629,7 +629,7 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain,
(*sid_mem)[j] = rid_to_talloced_sid(domain, mem_ctx, (rid_mem)[j]);
}
- if (!*names || !*name_types) {
+ if (*num_names>0 && (!*names || !*name_types)) {
result = NT_STATUS_NO_MEMORY;
goto done;
}