summaryrefslogtreecommitdiff
path: root/source3/nsswitch
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
commit531caf6b5df0fc338466f90085f17f07cfddfc12 (patch)
treebdcf5e05dd890ca57222b26abe7ce42fcbfd2825 /source3/nsswitch
parent9b9f1697ee2b24f28ce31c6a860c9b6c8a0c5e99 (diff)
downloadsamba-531caf6b5df0fc338466f90085f17f07cfddfc12.tar.gz
samba-531caf6b5df0fc338466f90085f17f07cfddfc12.tar.bz2
samba-531caf6b5df0fc338466f90085f17f07cfddfc12.zip
patch for domain groups with no members (rpc only) from Ken Cross
(This used to be commit 05ec9c40f40be4d4dbb10b33e0def2374468ff8a)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c
index 81a79751f8..33339d7ca0 100644
--- a/source3/nsswitch/winbindd_rpc.c
+++ b/source3/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;
}