diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-09-26 12:50:36 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:19 -0500 |
commit | 9f0638c0cf49afcc91ead4674bd4b458586553c9 (patch) | |
tree | f5428500977f43e80ce3ee8ea52c605ad74bf7ae /source4/rpc_server/epmapper | |
parent | b9a779fa83029778bbd2bf059892d0226fc3a035 (diff) | |
download | samba-9f0638c0cf49afcc91ead4674bd4b458586553c9.tar.gz samba-9f0638c0cf49afcc91ead4674bd4b458586553c9.tar.bz2 samba-9f0638c0cf49afcc91ead4674bd4b458586553c9.zip |
r2663: fix an epmapper server leak - another talloc_realloc(NULL, ) leak
(This used to be commit 2662be3a2be04aa7f4dcfde3453389595bf43496)
Diffstat (limited to 'source4/rpc_server/epmapper')
-rw-r--r-- | source4/rpc_server/epmapper/rpc_epmapper.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |