diff options
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 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 |