From: Gerald Carter Date: Wed, 27 Jun 2007 16:52:34 +0000 (+0000) Subject: r23632: Correctly return the new_group list pointer from expand_groups X-Git-Tag: samba-4.0.0alpha6~801^2~5524 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e10258ff054c4b016d89ca4f4468f8f4461f5aca;p=thirdparty%2Fsamba.git r23632: Correctly return the new_group list pointer from expand_groups or else getgrnam() always acts like 'winbind expand groups = 1' (This used to be commit 04ae193ec44c0ecefa64ca44ad0cdb5968087319) --- diff --git a/source3/nsswitch/winbindd_group.c b/source3/nsswitch/winbindd_group.c index 465477cd0e5..2d83dd3870c 100644 --- a/source3/nsswitch/winbindd_group.c +++ b/source3/nsswitch/winbindd_group.c @@ -456,7 +456,7 @@ static NTSTATUS expand_groups( TALLOC_CTX *ctx, TALLOC_FREE( tmp_ctx ); } - new_glist = &new_groups; + *new_glist = new_groups; *n_new_glist = (uint32)new_groups_size; out: