diff options
author | Michael Adam <obnox@samba.org> | 2007-05-31 23:58:56 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:02 -0500 |
commit | b5f37e73592faed1114402f161e013ff8cfd3527 (patch) | |
tree | 2b5aa37fa64c51f8d5b87f983aae3cd6d5eb268d /source3/nsswitch | |
parent | 8c4ef50f1388a117da349d6bd56078ce1d294727 (diff) | |
download | samba-b5f37e73592faed1114402f161e013ff8cfd3527.tar.gz samba-b5f37e73592faed1114402f161e013ff8cfd3527.tar.bz2 samba-b5f37e73592faed1114402f161e013ff8cfd3527.zip |
r23284: Oh what a nasty typo! This gave me some headache,
with talloc randomly failing.
Hey, shouldn't TALLOC_ARRAY _not_ return NULL when
requested to allocate an array with zero entries? :-)
Michael
(This used to be commit 7170d2e9f5381b405e0ea902d2b2463e5ca804e6)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 156dd119a8..222d653fdb 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -975,7 +975,7 @@ static NTSTATUS lookup_groupmem(struct winbindd_domain *domain, * we try to resolve as many sids as possible from the * cache. Only the rest is passed to the lsa_lookup_sids call. */ - if (num_names) { + if (num_members) { (*sid_mem) = TALLOC_ZERO_ARRAY(mem_ctx, DOM_SID, num_members); (*names) = TALLOC_ZERO_ARRAY(mem_ctx, char *, num_members); (*name_types) = TALLOC_ZERO_ARRAY(mem_ctx, uint32, num_members); |