From 9f0638c0cf49afcc91ead4674bd4b458586553c9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 26 Sep 2004 12:50:36 +0000 Subject: r2663: fix an epmapper server leak - another talloc_realloc(NULL, ) leak (This used to be commit 2662be3a2be04aa7f4dcfde3453389595bf43496) --- source4/rpc_server/epmapper/rpc_epmapper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source4') diff --git a/source4/rpc_server/epmapper/rpc_epmapper.c b/source4/rpc_server/epmapper/rpc_epmapper.c index 4450f5b0a2..37f1c372e0 100644 --- a/source4/rpc_server/epmapper/rpc_epmapper.c +++ b/source4/rpc_server/epmapper/rpc_epmapper.c @@ -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; -- cgit