Author: jerry
Date: 2007-06-27 16:52:34 +0000 (Wed, 27 Jun 2007)
New Revision: 23632

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23632

Log:
Correctly return the new_group list pointer from expand_groups
or else getgrnam() always  acts like 'winbind expand groups = 1'

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd_group.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_group.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_group.c 2007-06-27 15:37:03 UTC 
(rev 23631)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_group.c 2007-06-27 16:52:34 UTC 
(rev 23632)
@@ -456,7 +456,7 @@
                TALLOC_FREE( tmp_ctx );
        }
 
-       new_glist = &new_groups;
+       *new_glist = new_groups;
        *n_new_glist = (uint32)new_groups_size; 
        
  out:

Reply via email to