From 41848fea6fb3cea36caf0790302f7460b03d17c9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 22 Nov 2006 16:55:21 +0000 Subject: r19844: Fix warnings and errors in epmapper IDL. (This used to be commit 0221d5b6c4250a3a2c86c623c534996d7decb1f6) --- source4/rpc_server/epmapper/rpc_epmapper.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source4/rpc_server/epmapper') diff --git a/source4/rpc_server/epmapper/rpc_epmapper.c b/source4/rpc_server/epmapper/rpc_epmapper.c index 2c8b56b893..8c238ebe71 100644 --- a/source4/rpc_server/epmapper/rpc_epmapper.c +++ b/source4/rpc_server/epmapper/rpc_epmapper.c @@ -131,7 +131,8 @@ static error_status_t epm_Lookup(struct dcesrv_call_state *dce_call, TALLOC_CTX } *r->out.entry_handle = h->wire_handle; - r->out.num_ents = num_ents; + r->out.num_ents = talloc(mem_ctx, uint32_t); + *r->out.num_ents = num_ents; if (num_ents == 0) { r->out.entries = NULL; @@ -179,7 +180,8 @@ static error_status_t epm_Map(struct dcesrv_call_state *dce_call, TALLOC_CTX *me count = build_ep_list(mem_ctx, dce_call->conn->dce_ctx->endpoint_list, &eps); ZERO_STRUCT(*r->out.entry_handle); - r->out.num_towers = 1; + r->out.num_towers = talloc(mem_ctx, uint32_t); + *r->out.num_towers = 1; r->out.towers = talloc(mem_ctx, struct epm_twr_p_t); if (!r->out.towers) { return EPMAPPER_STATUS_NO_MEMORY; @@ -230,7 +232,7 @@ static error_status_t epm_Map(struct dcesrv_call_state *dce_call, TALLOC_CTX *me failed: - r->out.num_towers = 0; + *r->out.num_towers = 0; r->out.towers->twr = NULL; return EPMAPPER_STATUS_NO_MORE_ENTRIES; -- cgit