r23632: Correctly return the new_group list pointer from expand_groups
authorGerald Carter <jerry@samba.org>
Wed, 27 Jun 2007 16:52:34 +0000 (16:52 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:38 +0000 (12:23 -0500)
or else getgrnam() always  acts like 'winbind expand groups = 1'

source/nsswitch/winbindd_group.c

index 465477cd0e55102e31c761fbd26cda0616213943..2d83dd3870c481d044392ea49df26c7c0db6ebea 100644 (file)
@@ -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: