diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-05 23:43:07 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-05 23:43:07 +0000 |
commit | 3eb6b2a6c3f36cbc03c458d50586a6cf5e518002 (patch) | |
tree | a906b83c4a37f3658d2ba6a230fdc679aefd0c2a /source3 | |
parent | 17b22be3c9b286bb20481db1ab7c5c3a09138fe9 (diff) | |
download | samba-3eb6b2a6c3f36cbc03c458d50586a6cf5e518002.tar.gz samba-3eb6b2a6c3f36cbc03c458d50586a6cf5e518002.tar.bz2 samba-3eb6b2a6c3f36cbc03c458d50586a6cf5e518002.zip |
(merge from 3.0)
Having no members of a group is a perfectly valid (if unusual) situation.
Andrew Bartlett
(This used to be commit bc77b586be6992a662422304dbefbd4b833818fb)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/nsswitch/winbindd_rpc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_rpc.c b/source3/nsswitch/winbindd_rpc.c index b13d419110..916ae78d21 100644 --- a/source3/nsswitch/winbindd_rpc.c +++ b/source3/nsswitch/winbindd_rpc.c @@ -631,6 +631,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 |