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-misc-tags/initial-v3-0-unstable~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=04ae193ec44c0ecefa64ca44ad0cdb5968087319;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' --- diff --git a/source/nsswitch/winbindd_group.c b/source/nsswitch/winbindd_group.c index 465477cd0e5..2d83dd3870c 100644 --- a/source/nsswitch/winbindd_group.c +++ b/source/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: