diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-11-22 16:55:21 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:28:24 -0500 |
commit | 41848fea6fb3cea36caf0790302f7460b03d17c9 (patch) | |
tree | 9d3f3897ba6eba28e5cc17aa4b252f4efb3cf699 /source4/rpc_server/epmapper | |
parent | ef9e094d848cee3dd61cf6521458d946df2e24d7 (diff) | |
download | samba-41848fea6fb3cea36caf0790302f7460b03d17c9.tar.gz samba-41848fea6fb3cea36caf0790302f7460b03d17c9.tar.bz2 samba-41848fea6fb3cea36caf0790302f7460b03d17c9.zip |
r19844: Fix warnings and errors in epmapper IDL.
(This used to be commit 0221d5b6c4250a3a2c86c623c534996d7decb1f6)
Diffstat (limited to 'source4/rpc_server/epmapper')
-rw-r--r-- | source4/rpc_server/epmapper/rpc_epmapper.c | 8 |
1 files changed, 5 insertions, 3 deletions
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; |