diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-01-02 05:33:14 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2004-01-02 05:33:14 +0000 |
commit | ffedf5a1aa4d1c08a6d2ba92afbb933e21f6cf55 (patch) | |
tree | 5f9997b8dec6559328b4e95478b1550d079c6c7b /source3/nsswitch/winbindd_rpc.c | |
parent | b4593e92ff75f006982d7f49337a0a94f44d4218 (diff) | |
download | samba-ffedf5a1aa4d1c08a6d2ba92afbb933e21f6cf55.tar.gz samba-ffedf5a1aa4d1c08a6d2ba92afbb933e21f6cf55.tar.bz2 samba-ffedf5a1aa4d1c08a6d2ba92afbb933e21f6cf55.zip |
Having no members of a group is a perfectly valid (if unusual) situation.
Andrew Bartlett
(This used to be commit 3f6d0cd3a83bc75922cb125ffe2b0127c8aa417b)
Diffstat (limited to 'source3/nsswitch/winbindd_rpc.c')
-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 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 |