svn commit: samba r13757 - in trunk/source/passdb: .

idra at samba.org idra at samba.org
Tue Feb 28 14:53:12 GMT 2006


Author: idra
Date: 2006-02-28 14:53:12 +0000 (Tue, 28 Feb 2006)
New Revision: 13757

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

Log:

Use samu_new()


Modified:
   trunk/source/passdb/pdb_ldap.c


Changeset:
Modified: trunk/source/passdb/pdb_ldap.c
===================================================================
--- trunk/source/passdb/pdb_ldap.c	2006-02-28 13:53:16 UTC (rev 13756)
+++ trunk/source/passdb/pdb_ldap.c	2006-02-28 14:53:12 UTC (rev 13757)
@@ -4627,7 +4627,7 @@
 	sid_copy(&user_sid, get_global_sam_sid());
 	sid_append_rid(&user_sid, *rid);
 
-	user = talloc_zero(tmp_ctx, struct samu);
+	user = samu_new(tmp_ctx);
 	if (!user) {
 		DEBUG(1,("ldapsam_create_user: Unable to allocate user struct\n"));
 		return NT_STATUS_NO_MEMORY;



More information about the samba-cvs mailing list