r2663: fix an epmapper server leak - another talloc_realloc(NULL, ) leak
authorAndrew Tridgell <tridge@samba.org>
Sun, 26 Sep 2004 12:50:36 +0000 (12:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:19 +0000 (12:59 -0500)
(This used to be commit 2662be3a2be04aa7f4dcfde3453389595bf43496)

source4/rpc_server/epmapper/rpc_epmapper.c

index 4450f5b0a215df90b4797776a178322f19981ca5..37f1c372e08af67e53f14ad07651af6b49b43c84 100644 (file)
@@ -117,13 +117,13 @@ static BOOL fill_protocol_tower(TALLOC_CTX *mem_ctx, struct epm_towers *twr,
   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;