svn commit: samba r2663 - in branches/SAMBA_4_0/source/rpc_server/epmapper: .

tridge at samba.org tridge at samba.org
Sun Sep 26 12:50:36 GMT 2004


Author: tridge
Date: 2004-09-26 12:50:36 +0000 (Sun, 26 Sep 2004)
New Revision: 2663

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

Log:
fix an epmapper server leak - another talloc_realloc(NULL, ) leak

Modified:
   branches/SAMBA_4_0/source/rpc_server/epmapper/rpc_epmapper.c


Changeset:
Modified: branches/SAMBA_4_0/source/rpc_server/epmapper/rpc_epmapper.c
===================================================================
--- branches/SAMBA_4_0/source/rpc_server/epmapper/rpc_epmapper.c	2004-09-26 12:48:06 UTC (rev 2662)
+++ branches/SAMBA_4_0/source/rpc_server/epmapper/rpc_epmapper.c	2004-09-26 12:50:36 UTC (rev 2663)
@@ -117,13 +117,13 @@
   build a list of all interfaces handled by all endpoint servers
 */
 static uint32_t build_ep_list(TALLOC_CTX *mem_ctx,
-			    struct dcesrv_endpoint *endpoint_list,
-			    struct dcesrv_ep_iface **eps)
+			      struct dcesrv_endpoint *endpoint_list,
+			      struct dcesrv_ep_iface **eps)
 {
 	struct dcesrv_endpoint *d;
 	uint32_t total = 0;
 
-	(*eps) = NULL;
+	(*eps) = talloc(mem_ctx, 0);
 	
 	for (d=endpoint_list; d; d=d->next) {
 		struct dcesrv_if_list *iface;



More information about the samba-cvs mailing list