svn commit: samba r2592 - in branches/SAMBA_4_0/source/rpc_server/samr: .

tridge at samba.org tridge at samba.org
Fri Sep 24 07:28:50 GMT 2004


Author: tridge
Date: 2004-09-24 07:28:50 +0000 (Fri, 24 Sep 2004)
New Revision: 2592

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/rpc_server/samr&rev=2592&nolog=1

Log:
this fixes one of the security memory leaks in the server

Modified:
   branches/SAMBA_4_0/source/rpc_server/samr/samdb.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/samr/samdb.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/samr/samdb.c	2004-09-24 07:28:16 UTC (rev 2591)
+++ branches/SAMBA_4_0/source/rpc_server/samr/samdb.c	2004-09-24 07:28:50 UTC (rev 2592)
@@ -77,7 +77,7 @@
 
 	ldb_set_debug(static_sam_db, samdb_debug, NULL);
 
-	ctx = talloc_p(NULL, struct samdb_context);
+	ctx = talloc_p(mem_ctx, struct samdb_context);
 	if (!ctx) {
 		errno = ENOMEM;
 		return NULL;



More information about the samba-cvs mailing list