From e10258ff054c4b016d89ca4f4468f8f4461f5aca Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Wed, 27 Jun 2007 16:52:34 +0000 Subject: [PATCH] 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) --- source3/nsswitch/winbindd_group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.34.1