From ffedf5a1aa4d1c08a6d2ba92afbb933e21f6cf55 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 2 Jan 2004 05:33:14 +0000 Subject: Having no members of a group is a perfectly valid (if unusual) situation. Andrew Bartlett (This used to be commit 3f6d0cd3a83bc75922cb125ffe2b0127c8aa417b) --- source3/nsswitch/winbindd_rpc.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source3') diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index e05d46a936..9adc299cc6 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -632,6 +632,13 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain, if (!NT_STATUS_IS_OK(result)) goto done; + if (!*num_names) { + names = NULL; + name_types = NULL; + sid_mem = NULL; + goto done; + } + /* Step #2: Convert list of rids into list of usernames. Do this in bunches of ~1000 to avoid crashing NT4. It looks like there is a buffer overflow or something like that lurking around -- cgit